blob: 766964e6128ca6eaafbbb18265c8ee463b986c3f (
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
42
43
44
45
46
47
|
import QtQuick 2.15
import QtQuick.Controls 2.15
import "larva/features"
ApplicationWindow {
property string imageDir
signal signUp(string brand)
function pushCatalog() {
stack.push("Catalog.qml")
}
id: window
width: 360
height: 640
visible: true
StackView {
id: stack
anchors.fill: parent
initialItem : Column {
Image {
width: parent.width
fillMode: Image.PreserveAspectFit
source: "images/onboarding-illustration-1.png"
}
EmailForm {
anchors.bottom: parent.bottom
width: parent.width
backButton.visible: false
instructionLabel {
text: qsTr("Cukup masukkan nama toko Anda, et voilĂ !")
font.pointSize: 18
}
emailTextField {
placeholderText: "Contoh: Tokomata"
validator: RegularExpressionValidator {
regularExpression: /[a-zA-Z0-9]+/
}
onTextChanged: if (!emailTextField.text || !loginButton.enabled)
loginButton.enabled = !loginButton.enabled
}
loginButton {
text: qsTr("Mulai berjualan!")
onClicked: signUp(emailTextField.text)
}
}
}
}
}
|