-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfiloNegozio1.ui.qml
191 lines (175 loc) · 6.51 KB
/
ProfiloNegozio1.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
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
width: stackView.width
height: stackView.height
title: qsTr("Moda Sport")
ScrollView {
id: frame
clip: true
anchors.fill: parent
Flickable {
contentHeight: 730
width: parent.width
Image {
x: (stackView.width/2) - width/2
y: 20
width: 80
height: 80
source: "qrc:/images/shop1.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 13, Padova, Italia"], ["time", "<font color='red'>Chiuso</font> - Apre alle ore 16"], ["telefono", "049 6643651"], ["internet", "www.modaesport.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
}
}
}
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 platino</i><br><p>Negozio sportivo con qualità medio alta. Personale gentile e preparato. Puoi trovare un buon assortimento di scarpe da trekking. Ottimo e grande parcheggio riservato ai clienti. Il negozio è molto vicino alla Stanga, ma l'entrata è un po' scomoda.</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
}
}
}
}
}
}