qmlFrontend/qml/qmlFrontend/GameConfig.qml
branchqmlfrontend
changeset 10454 2b590e7972b1
parent 10452 03519fd9f98d
child 10456 6fd99bb73524
equal deleted inserted replaced
10452:03519fd9f98d 10454:2b590e7972b1
   113                     border.color: "#eaea00"                    
   113                     border.color: "#eaea00"                    
   114 
   114 
   115                     MouseArea {
   115                     MouseArea {
   116                         z: 1
   116                         z: 1
   117                         anchors.fill: parent
   117                         anchors.fill: parent
   118                         onClicked: HWEngine.changeTeamColor(name, 1)
   118                         acceptedButtons: Qt.LeftButton | Qt.RightButton
       
   119                         onClicked: {
       
   120                             if (mouse.button === Qt.LeftButton)
       
   121                                 HWEngine.changeTeamColor(name, 1)
       
   122                             else if (mouse.button === Qt.RightButton)
       
   123                                 HWEngine.changeTeamColor(name, -1)
       
   124                         }
       
   125                         onWheel: HWEngine.changeTeamColor(name, -wheel.angleDelta.y)
   119                    }
   126                    }
   120                 }
   127                 }
   121 
   128 
   122                 Text { text: name
   129                 Text { text: name
   123                     MouseArea {
   130                     MouseArea {