qmlFrontend/qml/qmlFrontend/GameConfig.qml
branchqmlfrontend
changeset 11437 6e641b5453f9
parent 11434 23912c93935a
child 11440 330c14f4ba69
equal deleted inserted replaced
11436:f7fa429e42ab 11437:6e641b5453f9
    55                  onClicked: {
    55                  onClicked: {
    56                      cbTheme.currentIndex = index
    56                      cbTheme.currentIndex = index
    57                      HWEngine.setTheme(themeName.text)
    57                      HWEngine.setTheme(themeName.text)
    58                  }
    58                  }
    59             }
    59             }
    60 
    60         }
    61             Connections {
    61 
    62                 target: HWEngine
    62         Connections {
    63                 onThemeChanged: cbTheme.showItem({"iconSource" : "image://theme/" + theme, "text" : theme});
    63             target: HWEngine
    64             }
    64             onThemeChanged: cbTheme.showItem({"iconSource" : "image://theme/" + theme, "text" : theme});
    65         }
    65         }
    66     }
    66     }
    67 
    67 
    68     HWComboBox {
    68     HWComboBox {
    69         id: cbScript
    69         id: cbScript
    90                  onClicked: {
    90                  onClicked: {
    91                      cbScript.currentIndex = index
    91                      cbScript.currentIndex = index
    92                      HWEngine.setScript(scriptName.text)
    92                      HWEngine.setScript(scriptName.text)
    93                  }
    93                  }
    94             }
    94             }
    95             Connections {
    95         }
    96                 target: HWEngine
    96         Connections {
    97                 onScriptChanged: cbScript.showItem({"iconSource" : "", "text" : script});
    97             target: HWEngine
    98             }
    98             onScriptChanged: cbScript.showItem({"iconSource" : "", "text" : script});
    99         }
    99         }
   100     }
   100     }
   101 
   101 
   102     HWComboBox {
   102     HWComboBox {
   103         id: cbScheme
   103         id: cbScheme
   155                  onClicked: {
   155                  onClicked: {
   156                      cbAmmo.currentIndex = index
   156                      cbAmmo.currentIndex = index
   157                      HWEngine.setAmmo(ammoName.text)
   157                      HWEngine.setAmmo(ammoName.text)
   158                  }
   158                  }
   159             }
   159             }
       
   160         }
       
   161         Connections {
       
   162             target: HWEngine
       
   163             onAmmoChanged: cbAmmo.showItem({"iconSource" : "", "text" : ammo});
   160         }
   164         }
   161     }
   165     }
   162     }
   166     }
   163 
   167 
   164     ListView {
   168     ListView {