-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfiloNegozio3.ui.qml
195 lines (179 loc) · 6.83 KB
/
ProfiloNegozio3.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
width: stackView.width
height: stackView.height
title: qsTr("I tre scalini")
ScrollView {
id: frame
clip: true
anchors.fill: parent
Flickable {
contentHeight: 900
width: parent.width
Image {
x: (stackView.width/2) - width/2
y: 20
width: 80
height: 80
source: "qrc:/images/shop3.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.85
}
Text {
y: 180
width: stackView.width
text: qsTr("l'85% 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 Venezia 2, Padova, Italia"], ["time", "<font color='green'>Aperto</font> - Chiude alle ore 13"], ["telefono", "049 8070489"], ["internet", "bartrescalini.it"]]
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
}
}
}
Text {
x: 20
y: 505
text: qsTr("Recensioni")
color: "#9b9b9b"
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 12
}
ListView {
y: 530
interactive: false
width: stackView.width
height: stackView.height
property string bgcolor: "#d9d9d9"
model: [ ["elisa", "Elisa Morini<br><i>Status oro</i><br><p>Pochi sorrisi, posti al sole, ma tramezzini buoni e ricolmi di cibo. Paninazzi onti buoni, ma niente a che vedere con i paninazzi onti dei competitor. Certo ormai sono un posto affollatissimo per gli universitari ma mai e poi mai ci avrei fatto un rinfresco di laurea.</p>"],
["davide", "Davide Costa<br><i>Status platino</i><br><p>Servizio cordiale e disponibile ambiente pulito e ordinato
prodotti freschi e di qualità.
Ideale per feste di laurea viste le due sale interne che si possono riservare.
Da tre anni ormai sponsor dello psicoparty (la festa di psicologia)</p>"] ]
delegate: ItemDelegate {
width: stackView.width
height: 180
Rectangle {
color: "#ffffff"
anchors.fill: parent
Image {
x: 25
y: parent.height/2 - height/2
width: 40
height: 40
source: "qrc:/images/" + modelData[0] + ".png"
}
Text {
x: 80
y: parent.height/2 - height/2
width: stackView.width - x - 20
text: modelData[1]
font.pixelSize: 13
wrapMode: Text.WordWrap
}
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
}
}
}
}
}
}