projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativemousearea
/
data
/
pressedOrdering.qml
1
import QtQuick 1.0
2
3
Item {
4
id: root
5
property string value: "base"
6
7
MouseArea {
8
id: mouseArea
9
width: 200; height: 200
10
onClicked: toggleState.state = "toggled"
11
}
12
13
StateGroup {
14
states: State {
15
name: "pressed"
16
when: mouseArea.pressed
17
PropertyChanges { target: root; value: "pressed" }
18
}
19
}
20
21
StateGroup {
22
id: toggleState
23
states: State {
24
name: "toggled"
25
PropertyChanges { target: root; value: "toggled" }
26
}
27
}
28
}