summaryrefslogtreecommitdiff
path: root/pages/CreateProfile.qml
blob: b0b03a15e5c856ab6d72f671472eb4fc8a771149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import QtQuick 2.12
import KelakonUser 0.1

CreateProfileForm {
	width: stackView.width
	height: stackView.height
	backButton.onClicked: stackView.pop()
	skipButton.onClicked: {
		stackView.push("qrc:/pages/Home.qml")
	}
	emailAddressLabel.text: User.emailAddress
	startUsingKelakon.onClicked: {
		User.name = userNameLabel.text
		User.realName = enterFullName.text
		login.signUp(
			User.name
			, User.emailAddress
			, User.realName
			, ""
			, ""
			, 0
			, 0
			, ""
			, true
			, false
			, User.password
			, ""
			, ""
			, ""
			, ""
			, ""
			, ""
			, ""
			, ""
			, ""
			, ""
			, ""
			, ""
			, "")
	}
}