tests/auto/declarative/qdeclarativestates/data/whenOrdering.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 15:10:48 +0300 (2010-07-06)
changeset 30 5dc02b23752f
permissions -rw-r--r--
Revision: 201025 Kit: 2010127
import Qt 4.7

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

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