summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/extendsBug.qml
blob: a4b77b122ea70db94a9097dcfabfa281e295364c (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 1.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 }
        }
    ]
}