summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/whenOrdering.qml
blob: 48aef5a6ced4355ebc3b97262c1efd533565b645 (plain)
1
2
3
4
5
6
7
8
9
10
11
import QtQuick 1.0

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

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