-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRecap.ui.qml
89 lines (77 loc) · 2 KB
/
Recap.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
81
82
83
84
85
86
87
88
89
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Dialogs 1.1
Page {
width: 380
height: 640
title: qsTr("Riepilogo")
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
}
Text {
id: total
width: stackView.width
y: 180
text: qsTr("TOTALE: 120.00 €")
font.bold: true
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
}
Text {
width: stackView.width
y: 250
text: qsTr("Buoni sconto disponibili")
font.underline: true
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
}
ListView {
id: buoni
width: stackView.width
height: 100
x: 0
y: 300
model: ["Nesuno sconto", "Sconto del 10%", "Sconto del 15%"]
delegate: RadioDelegate {
text: modelData
width: stackView.width
checked: index == 0
onCheckedChanged: {
if(checked && index == 0)
total.text = qsTr("TOTALE: 120.00 €")
else if(checked && index == 1)
total.text = qsTr("TOTALE: 108.00 €")
else if(checked && index == 2)
total.text = qsTr("TOTALE: 102.00 €")
}
}
}
Button {
id: button
x: stackView.width/2 - button.width/2
y: 500
text: qsTr("Paga")
}
Connections {
target: button
onClicked: stackView.push("TransactionCompleted.ui.qml")
}
}