diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-09-15 00:53:29 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-09-15 00:57:34 (GMT) |
commit | 8ab760b70e13318749bcc83e33b9a9b9a849a892 (patch) | |
tree | 890b756a675c5beab16a5233c58a7404182fe895 /tests/auto/declarative/qdeclarativestates/data | |
parent | 3f1b772d7ff2ccb216cc05ec08b82a9b8729802a (diff) | |
download | Qt-8ab760b70e13318749bcc83e33b9a9b9a849a892.zip Qt-8ab760b70e13318749bcc83e33b9a9b9a849a892.tar.gz Qt-8ab760b70e13318749bcc83e33b9a9b9a849a892.tar.bz2 |
Restore any absolute geometry changed by AnchorChanges when returning
to the base state.
Task-number: QTBUG-11834
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/anchorRewindBug2.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/anchorRewindBug2.qml b/tests/auto/declarative/qdeclarativestates/data/anchorRewindBug2.qml new file mode 100644 index 0000000..4ed2815 --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/anchorRewindBug2.qml @@ -0,0 +1,25 @@ +import Qt 4.7 + +Rectangle { + id: root + width:200; height:300 + + Rectangle { + id: rectangle + objectName: "mover" + color: "green" + width:50; height:50 + } + + states: [ + State { + name: "anchored" + AnchorChanges { + target: rectangle + anchors.left: root.left + anchors.right: root.right + anchors.bottom: root.bottom + } + } + ] +} |