aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/illegalTempState.qml
blob: 9cb39c072890c9b6e1ca459e0a25952a6430293a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 2.0

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

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

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