Files correlati : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe Bug : Commento: Merge 1.0 libraries
29 lines
560 B
QML
29 lines
560 B
QML
import QtQuick 1.0
|
|
|
|
Item {
|
|
id: root
|
|
property string value: "base"
|
|
|
|
MouseArea {
|
|
id: mouseArea
|
|
width: 200; height: 200
|
|
onClicked: toggleState.state = "toggled"
|
|
}
|
|
|
|
StateGroup {
|
|
states: State {
|
|
name: "pressed"
|
|
when: mouseArea.pressed
|
|
PropertyChanges { target: root; value: "pressed" }
|
|
}
|
|
}
|
|
|
|
StateGroup {
|
|
id: toggleState
|
|
states: State {
|
|
name: "toggled"
|
|
PropertyChanges { target: root; value: "toggled" }
|
|
}
|
|
}
|
|
}
|