equal
deleted
inserted
replaced
7 property alias currentIndex: itemsList.currentIndex |
7 property alias currentIndex: itemsList.currentIndex |
8 |
8 |
9 Window { |
9 Window { |
10 id: selection |
10 id: selection |
11 visibility: Window.Hidden |
11 visibility: Window.Hidden |
|
12 modality: Qt.WindowModal |
|
13 flags: Qt.Dialog |
12 |
14 |
13 ListView { |
15 ListView { |
14 id: itemsList |
16 id: itemsList |
15 x: 0 |
17 x: 0 |
16 y: 64 |
18 y: 64 |
17 anchors.fill: parent |
19 anchors.fill: parent |
|
20 anchors.bottomMargin: 32 |
18 highlight: Rectangle { color: "#eaea00"; radius: 4 } |
21 highlight: Rectangle { color: "#eaea00"; radius: 4 } |
19 focus: true |
22 focus: true |
|
23 |
|
24 onCurrentItemChanged: { |
|
25 cbIcon.source = currentItem.itemIconSource |
|
26 cbText.text = currentItem.itemText |
|
27 } |
|
28 } |
|
29 |
|
30 HWButton { |
|
31 x: parent.width - 32 |
|
32 y: parent.height - 32 |
|
33 width: 32 |
|
34 height: 32 |
|
35 |
|
36 onClicked: selection.visibility = Window.Hidden; |
|
37 } |
|
38 } |
|
39 |
|
40 Row { |
|
41 anchors.fill: parent |
|
42 anchors.margins: 4 |
|
43 |
|
44 Image { |
|
45 id: cbIcon |
|
46 width: height |
|
47 height: parent.height |
|
48 } |
|
49 |
|
50 Text { |
|
51 id: cbText |
|
52 height: parent.height |
20 } |
53 } |
21 } |
54 } |
22 |
55 |
23 onClicked: selection.visibility = Window.Windowed |
56 onClicked: selection.visibility = Window.Windowed |
24 } |
57 } |