qmlFrontend/qml/qmlFrontend/GameConfig.qml
branchqmlfrontend
changeset 11432 97e3e62ea5f9
parent 11426 ab6a6d9ebfc0
child 11433 bca9afcc3a72
--- a/qmlFrontend/qml/qmlFrontend/GameConfig.qml	Wed Nov 25 22:10:01 2015 +0300
+++ b/qmlFrontend/qml/qmlFrontend/GameConfig.qml	Thu Nov 26 20:11:54 2015 +0300
@@ -55,6 +55,11 @@
                      HWEngine.setTheme(themeName.text)
                  }
             }
+
+            Connections {
+                target: HWEngine
+                onThemeChanged: cbTheme.showItem({"iconSource" : "image://theme/" + theme, "text" : theme});
+            }
         }
     }
 
@@ -85,6 +90,10 @@
                      HWEngine.setScript(scriptName.text)
                  }
             }
+            Connections {
+                target: HWEngine
+                onScriptChanged: scriptsModel.showItem({"iconSource" : "", "text" : script});
+            }
         }
     }