-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModasport.ui.qml
150 lines (136 loc) · 4.71 KB
/
Modasport.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
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: 600
width: parent.width
Image {
x: (stackView.width/2) - width/2
y: 20
width: 80
height: 80
source: "qrc:/images/shop1.png"
MouseArea {
id: profile
anchors.fill: parent
}
}
Text {
y: 120
width: stackView.width
text: qsTr("Status Bronzo")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 16
}
ProgressBar {
x: stackView.width/2 - width/2
y: 155
width: 200
value: 0.4
}
Text {
y: 180
width: stackView.width
text: qsTr("Raccogli 123 token per il prossimo status")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 14
}
Text {
x: 20
y: 255
text: qsTr("Attività")
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: ["La mia recensione", "Bacheca", "I miei sconti", "I miei acquisti", "I miei inviti"]
delegate: ItemDelegate {
width: stackView.width
onClicked: {
if(index == 0)
stackView.push("Recensioni.ui.qml")
else if(index == 1)
stackView.push("Comunicazioni.ui.qml")
else if(index == 2)
stackView.push("Sconti.ui.qml")
else if(index == 3)
stackView.push("Acquisti.ui.qml")
else if(index == 4)
stackView.push("Invita.ui.qml")
}
Rectangle {
color: "#ffffff"
anchors.fill: parent
Rectangle {
x: 25
y: parent.height/2 - height/2
width: 5
radius: 5
color: "#FF0000"
height: width
visible: index == 4
}
Text {
x: 50
y: parent.height/2 - height/2
text: modelData
font.pixelSize: 13
}
Text {
x: parent.width - 20
y: parent.height/2 - height/2
text: ">"
color: list.bgcolor
}
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
}
}
}
}
}
Connections {
target: profile
onClicked: stackView.push("ProfiloNegozio1.ui.qml")
}
}