summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/extendsBug.qml
blob: a3c482782838d8088832ac9d1629ee5f54ad0e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Qt 4.7

Rectangle {
    width: 200
    height: 200

    Rectangle {
        id: rect
        objectName: "greenRect"
        width: 100
        height: 100
        color: "green"
    }

    states:[
        State {
            name: "a"
            PropertyChanges { target: rect; x: 100 }
        },
        State {
            name: "b"
            extend:"a"
            PropertyChanges { target: rect; y: 100 }
        }
    ]
}