Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativestates / data / anchorRewindBug.qml
1 import QtQuick 1.0
2 Rectangle {
3     id: container
4     color: "red"
5     height: 200
6     width: 200
7     Column {
8         id: column
9         objectName: "column"
10         anchors.left: container.right
11         anchors.bottom: container.bottom
12
13         Rectangle {
14             id: rectangle
15             color: "blue"
16             height: 100
17             width: 200
18         }
19         Rectangle {
20             color: "blue"
21             height: 100
22             width: 200
23         }
24     }
25     states: State {
26         name: "reanchored"
27         AnchorChanges {
28             target: column
29             anchors.left: undefined
30             anchors.right: container.right
31         }
32         PropertyChanges {
33             target: rectangle
34             opacity: 0
35         }
36     }
37 }