blob: 42120485dca960b8fedd38a89b7bce9980dcc421 (
plain) (
blame)
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
|
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
Item {
width: 640
height: 460
RowLayout {
anchors.fill: parent
spacing: 0
Rectangle {
color: "#222222"
width: 172
anchors.top: parent.top
anchors.topMargin: 0
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
ListView {
id: list
boundsBehavior: Flickable.StopAtBounds
anchors.fill: parent
focus: true
highlight: Item {
Rectangle {
height: 40
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
radius: 8
color: "#333333"
}
Rectangle {
height: 40
anchors.right: parent.right
anchors.rightMargin: 8
anchors.left: parent.left
anchors.leftMargin: 0
color: "#333333"
}
}
delegate: Item {
height: 40
anchors.right: parent.right
anchors.rightMargin: 12
anchors.left: parent.left
anchors.leftMargin: 0
Row {
spacing: 8
Rectangle {
width: 40
height: 40
color: colorCode
}
Text {
text: name
color: '#ffffff'
anchors.verticalCenter: parent.verticalCenter
}
}
MouseArea {
anchors.fill: parent
hoverEnabled: false
onClicked: {
list.currentIndex = index
list.forceActiveFocus()
}
}
}
model: ListModel {
ListElement {
name: "Load Firmware"
colorCode: "red"
}
ListElement {
name: "Utilities"
colorCode: "blue"
}
ListElement {
name: "Settings"
colorCode: "green"
}
}
}
}
Rectangle {
Layout.fillWidth: true
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.top: parent.top
anchors.topMargin: 0
DropFiles {
id: dropFiles
anchors.fill: parent
}
}
}
}
|