--- a/qmlFrontend/qml/qmlFrontend/GameConfig.qml Wed Dec 03 00:07:33 2014 +0300
+++ b/qmlFrontend/qml/qmlFrontend/GameConfig.qml Wed Dec 03 00:20:21 2014 +0300
@@ -38,6 +38,7 @@
}
HWComboBox {
+ id: cbTheme
x: 320
y: 16
width: 100
@@ -48,13 +49,15 @@
height: 25
width: 100
color: "transparent"
- Text {id: themeName; text: modelData }
+ Row {
+ Image {width: height; height: parent.height; source: "image://theme/" + modelData}
+ Text {id: themeName; text: modelData }
+ }
MouseArea {
z: 1
anchors.fill: parent
onClicked: {
- themeImage.source = "image://theme/" + themeName.text
- model.currentIndex = index
+ cbTheme.currentIndex = index
HWEngine.setTheme(themeName.text)
}
}
--- a/qmlFrontend/qml/qmlFrontend/HWComboBox.qml Wed Dec 03 00:07:33 2014 +0300
+++ b/qmlFrontend/qml/qmlFrontend/HWComboBox.qml Wed Dec 03 00:20:21 2014 +0300
@@ -4,6 +4,7 @@
HWButton {
property alias model: itemsList.model
property alias delegate: itemsList.delegate
+ property alias currentIndex: itemsList.currentIndex
Window {
id: selection