-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomers.ui.qml
49 lines (40 loc) · 1.37 KB
/
Customers.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
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtGraphicalEffects 1.0
Page {
width: 380
height: 640
title: qsTr("I miei clienti")
ScrollView {
width: stackView.width
height: stackView.height - rect.height
ListView {
width: stackView.width
model: ["- Oro (3 utenti)", "Fabrizio Dughiero", "Martina Nespoli", "- Argento (8 utenti)", "Vanessa Mastroianni", "Filippo Pataro", "Davide Costa", "Patrizia Cannavò", "Filippo Russo", "Cesare Cobelli", "Matteo Bianchi", "Francesco Ferri", "- Bronzo (4 utenti)", "Elisa Rubele", "Emma dal Zovo", "Aldo Moretto", "Gino Vassoi"]
delegate: ItemDelegate {
text: modelData
width: stackView.width
enabled: !(index == 0 || index == 3 || index == 12)
font.bold: index == 0 || index == 3 || index == 12
onClicked: stackView.push("CustomerDetail.ui.qml")
}
}
}
Rectangle {
id: rect
width: stackView.width
height: 70
color: "#3f51b5"
y: stackView.height - height
Button {
id: theshold
x: stackView.width/2 - width/2
y: 10
text: qsTr("Cambia le soglie")
}
}
Connections {
target: theshold
onClicked: stackView.push("Theshold.ui.qml")
}
}