aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/extendsBug.qml
blob: 573341520dbe4eba06d443857d82b371ec096270 (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 QtQuick 2.0

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 }
        }
    ]
}