summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/states/data/anchorChanges2.qml
blob: 516ed58bcca2bcc447b4325bedf7565adc8c009c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Qt 4.6

Rectangle {
    width: 200; height: 200
    Rectangle {
        id: myRect
        objectName: "myRect"
        width: 50; height: 50
        color: "green";
        anchors.left: parent.left
        anchors.leftMargin: 5
    }
    states: State {
        name: "right"
        AnchorChanges {
            target: myRect;
            reset: "left"
            right: parent.right
        }
    }
}