-
Notifications
You must be signed in to change notification settings - Fork 0
/
InsertMoney.ui.qml
80 lines (69 loc) · 1.79 KB
/
InsertMoney.ui.qml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
width: 380
height: 640
title: qsTr("Inserire importo")
Text {
width: stackView.width
y: 30
text: qsTr("Fabio Rossi")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
}
Text {
width: stackView.width
y: 60
text: qsTr("FBBRSS72M12P453G")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
}
Text {
width: stackView.width
y: 90
text: qsTr("Utente: argento")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
}
Text {
width: stackView.width
y: 120
text: qsTr("Codice Utente: 1a2b3c")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
}
TextField {
id: textField
x: stackView.width/2 - 50
y: 200
width: 100
leftPadding: currencyLabel.width + currencyLabel.anchors.leftMargin + 2
validator: RegExpValidator {
regExp: /([+-]?[0-9]+(\.[0-9]{2})?)/
}
inputMethodHints: Qt.ImhDigitsOnly
placeholderText: qsTr("0.00")
horizontalAlignment: Text.AlignHCenter
Text {
id: currencyLabel
anchors {
top: parent.top; bottom: parent.bottom
left: parent.left; leftMargin: -15; bottomMargin: 7
}
verticalAlignment: Text.AlignVCenter
color: parent.color
text: qsTr("€")
font.pixelSize: 18
}
}
Button {
id: button
x: stackView.width/2 - button.width/2
y: 250
text: qsTr("Continua")
}
Connections {
target: button
onClicked: stackView.push("Recap.ui.qml")
}
}