summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/script.qml
blob: 3c5f33e9e4cf811e8c0aa1c8e0f08b8d86f26776 (plain)
1
2
3
4
5
6
7
8
9
10
import Qt 4.6
Rectangle {
    id: myRectangle
    width: 100; height: 100
    color: "red"
    states: State {
        name: "blue"
        StateChangeScript { script: myRectangle.color = "blue"; }
    }
}