qmlFrontend/qml/qmlFrontend/GameConfig.qml
branchqmlfrontend
changeset 11432 97e3e62ea5f9
parent 11426 ab6a6d9ebfc0
child 11433 bca9afcc3a72
equal deleted inserted replaced
11431:80a9b14bb8d3 11432:97e3e62ea5f9
    53                  onClicked: {
    53                  onClicked: {
    54                      cbTheme.currentIndex = index
    54                      cbTheme.currentIndex = index
    55                      HWEngine.setTheme(themeName.text)
    55                      HWEngine.setTheme(themeName.text)
    56                  }
    56                  }
    57             }
    57             }
       
    58 
       
    59             Connections {
       
    60                 target: HWEngine
       
    61                 onThemeChanged: cbTheme.showItem({"iconSource" : "image://theme/" + theme, "text" : theme});
       
    62             }
    58         }
    63         }
    59     }
    64     }
    60 
    65 
    61     HWComboBox {
    66     HWComboBox {
    62         id: cbScript
    67         id: cbScript
    82                  anchors.fill: parent
    87                  anchors.fill: parent
    83                  onClicked: {
    88                  onClicked: {
    84                      cbScript.currentIndex = index
    89                      cbScript.currentIndex = index
    85                      HWEngine.setScript(scriptName.text)
    90                      HWEngine.setScript(scriptName.text)
    86                  }
    91                  }
       
    92             }
       
    93             Connections {
       
    94                 target: HWEngine
       
    95                 onScriptChanged: scriptsModel.showItem({"iconSource" : "", "text" : script});
    87             }
    96             }
    88         }
    97         }
    89     }
    98     }
    90 
    99 
    91     HWComboBox {
   100     HWComboBox {