equal
deleted
inserted
replaced
36 |
36 |
37 onClicked: HWEngine.runLocalGame() |
37 onClicked: HWEngine.runLocalGame() |
38 } |
38 } |
39 |
39 |
40 HWComboBox { |
40 HWComboBox { |
|
41 id: cbTheme |
41 x: 320 |
42 x: 320 |
42 y: 16 |
43 y: 16 |
43 width: 100 |
44 width: 100 |
44 height: 256 |
45 height: 256 |
45 |
46 |
46 model: themesModel |
47 model: themesModel |
47 delegate: Rectangle { |
48 delegate: Rectangle { |
48 height: 25 |
49 height: 25 |
49 width: 100 |
50 width: 100 |
50 color: "transparent" |
51 color: "transparent" |
51 Text {id: themeName; text: modelData } |
52 Row { |
|
53 Image {width: height; height: parent.height; source: "image://theme/" + modelData} |
|
54 Text {id: themeName; text: modelData } |
|
55 } |
52 MouseArea { |
56 MouseArea { |
53 z: 1 |
57 z: 1 |
54 anchors.fill: parent |
58 anchors.fill: parent |
55 onClicked: { |
59 onClicked: { |
56 themeImage.source = "image://theme/" + themeName.text |
60 cbTheme.currentIndex = index |
57 model.currentIndex = index |
|
58 HWEngine.setTheme(themeName.text) |
61 HWEngine.setTheme(themeName.text) |
59 } |
62 } |
60 } |
63 } |
61 } |
64 } |
62 } |
65 } |