summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/ExtendedRectangle.qml
blob: 28e083ce6f2261d557197903d161906b88456b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Qt 4.7
Rectangle {
    id: extendedRect
    objectName: "extendedRect"
    property color extendedColor: "orange"

    width: 100; height: 100
    color: "red"
    states: State {
        name: "green"
        PropertyChanges {
            target: rect
            onDidSomething: {
                extendedRect.color = "green"
                extendedColor = "green"
            }
        }
    }
}