qmlFrontend/qml/qmlFrontend/GameConfig.qml
branchqmlfrontend
changeset 10519 af019fa70080
parent 10456 6fd99bb73524
child 10608 b85759f2ba18
equal deleted inserted replaced
10517:844bd43db47a 10519:af019fa70080
    35         height: 32
    35         height: 32
    36 
    36 
    37         onClicked: HWEngine.runLocalGame()
    37         onClicked: HWEngine.runLocalGame()
    38     }
    38     }
    39 
    39 
    40     Rectangle {
    40     HWComboBox {
       
    41         x: 320
       
    42         y: 16
       
    43         width: 100
       
    44         height: 256
       
    45 
       
    46         model: themesModel
       
    47         delegate: Rectangle {
       
    48             height: 25
       
    49             width: 100
       
    50             color: "transparent"
       
    51             Text {id: themeName; text: modelData }
       
    52             MouseArea {
       
    53                  z: 1
       
    54                  anchors.fill: parent
       
    55                  onClicked: {
       
    56                      themeImage.source = "image://theme/" + themeName.text
       
    57                      model.currentIndex = index
       
    58                      HWEngine.setTheme(themeName.text)
       
    59                  }
       
    60             }
       
    61         }
       
    62     }
       
    63 
       
    64 /*    Rectangle {
    41         x: 320
    65         x: 320
    42         y: 16
    66         y: 16
    43         width: 100
    67         width: 100
    44         height: 256
    68         height: 256
    45         color: "#15193a"
    69         color: "#15193a"
    52             y: 0
    76             y: 0
    53             width: 64
    77             width: 64
    54             height: 64
    78             height: 64
    55             fillMode: Image.Pad
    79             fillMode: Image.Pad
    56         }
    80         }
    57 
    81 */
    58         ListView {
       
    59             id: themesList
       
    60             x: 0
       
    61             y: 64
       
    62             width: 100
       
    63             height: 192
       
    64             highlight: Rectangle { color: "#eaea00"; radius: 4 }
       
    65             focus: true
       
    66 
       
    67             model: themesModel
       
    68             delegate: Rectangle {
       
    69                 height: 25
       
    70                 width: 100
       
    71                 color: "transparent"
       
    72                 Text {id: themeName; text: modelData }
       
    73                 MouseArea {
       
    74                      z: 1
       
    75                      anchors.fill: parent
       
    76                      onClicked: {
       
    77                          themeImage.source = "image://theme/" + themeName.text
       
    78                          themesList.currentIndex = index
       
    79                          HWEngine.setTheme(themeName.text)
       
    80                      }
       
    81                 }
       
    82             }
       
    83         }
       
    84     }
       
    85 
    82 
    86     ListView {
    83     ListView {
    87         id: playingTeamsList
    84         id: playingTeamsList
    88         x: 440
    85         x: 440
    89         y: 16
    86         y: 16