-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDetails.ui.qml
134 lines (118 loc) · 3.97 KB
/
Details.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
width: stackView.width
height: stackView.height
title: qsTr("Dettagli negozio")
ScrollView {
id: frame
clip: true
anchors.fill: parent
Flickable {
contentHeight: 550
width: parent.width
Image {
x: (stackView.width/2) - width/2
y: 20
width: 80
height: 80
source: "qrc:/images/barlogo.png"
}
Text {
y: 120
width: stackView.width
text: qsTr("TeLoRaccomandano")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 16
}
ProgressBar {
x: stackView.width/2 - width/2
y: 155
width: 200
value: 0.93
}
Text {
y: 180
width: stackView.width
text: qsTr("il 93% degli utenti")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 14
}
Text {
x: 20
y: 255
text: qsTr("Panoramica")
color: "#9b9b9b"
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 12
}
ListView {
id: list
y: 280
interactive: false
width: stackView.width
height: stackView.height
property string bgcolor: "#d9d9d9"
model: [ ["posizione", "via della Resistenza, Padova, Italia"], ["time", "<font color='green'>Aperto</font> - Chiude alle ore 23"], ["telefono", "049 7263965"], ["internet", "www.tagstore.com"]]
delegate: ItemDelegate {
width: stackView.width
Rectangle {
color: "#ffffff"
anchors.fill: parent
Image {
x: 30
y: parent.height/2 - height/2
width: 20
height: 20
source: "qrc:/images/" + modelData[0] + ".png"
}
Text {
x: 65
y: parent.height/2 - height/2
text: modelData[1]
font.pixelSize: 13
}
Rectangle {
x: stackView.width - width
y: parent.height - 2
width: index !== list.count-1 ? stackView.width-15 : stackView.width
border.color: list.bgcolor
height: 2
border.width: 1
Rectangle {
y: 0
width: parent.width
color: "#ffffff"
height: 1
}
}
}
}
Rectangle {
x: stackView.width - width
y: -2
width: stackView.width
border.color: list.bgcolor
height: 2
border.width: 1
Rectangle {
y: 1
width: parent.width
color: "#ffffff"
height: 1
}
}
}
Button {
id: edit
x: stackView.width/2 - width/2
y: 500
text: qsTr("Modifica")
}
}
}
Connections {
target: edit
onClicked: stackView.push("Profile.ui.qml")
}
}