summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/unnamedWhen.qml
blob: a70840c86e4822921afcdd75b85df510ce0d709c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Qt 4.7

Rectangle {
    id: theRect
    property bool triggerState: false
    property string stateString: ""
    states: State {
        when: triggerState
        PropertyChanges {
            target: theRect
            stateString: "inState"
        }
    }
}