tests/auto/declarative/qdeclarativestates/data/illegalTempState.qml
changeset 30 5dc02b23752f
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
       
     1 import Qt 4.7
       
     2 
       
     3 Rectangle {
       
     4     id: card
       
     5     width: 100; height: 100
       
     6 
       
     7     states: [
       
     8         State {
       
     9             name: "placed"
       
    10             PropertyChanges { target: card; state: "idle" }
       
    11         },
       
    12         State {
       
    13             name: "idle"
       
    14         }
       
    15     ]
       
    16 
       
    17     MouseArea {
       
    18         anchors.fill: parent
       
    19         onClicked: card.state = "placed"
       
    20     }
       
    21 }