summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/whenOrdering.qml
blob: 08d0795d6607bd163e0357bfe2357ca38784344a (plain)
1
2
3
4
5
6
7
8
9
10
11
import Qt 4.7

Rectangle {
    property bool condition1: false
    property bool condition2: false

    states: [
        State { name: "state1"; when: condition1 },
        State { name: "state2"; when: condition2 }
    ]
}