summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/states/data/illegalTempState.qml
blob: 2702be4eff0475478110393d32d6d14714cf76d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Qt 4.6

Rectangle {
    id: card
    width: 100; height: 100

    states: [
        State {
            name: "placed"
            PropertyChanges { target: card; state: "idle" }
        },
        State {
            name: "idle"
        }
    ]

    MouseRegion {
        anchors.fill: parent
        onClicked: card.state = "placed"
    }
}