summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-07-20 05:14:11 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-07-21 00:33:02 (GMT)
commit164b2b54922d87a44a60efe6dbbe2fa3b7716820 (patch)
tree8379cc7c54a2ebe442df74c157efded2449d9e15 /tests/auto/declarative/qdeclarativestates/data
parent5cfa17d144055fc58a768818e0dea0325a316e3e (diff)
downloadQt-164b2b54922d87a44a60efe6dbbe2fa3b7716820.zip
Qt-164b2b54922d87a44a60efe6dbbe2fa3b7716820.tar.gz
Qt-164b2b54922d87a44a60efe6dbbe2fa3b7716820.tar.bz2
Rewinding AnchorChanges should not make target item's implicit width and height explicit
Task-number: QTBUG-12273 Reviewed-by: Michael Brasser
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r--tests/auto/declarative/qdeclarativestates/data/anchorRewindBug.qml37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/anchorRewindBug.qml b/tests/auto/declarative/qdeclarativestates/data/anchorRewindBug.qml
new file mode 100644
index 0000000..e6b6020
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativestates/data/anchorRewindBug.qml
@@ -0,0 +1,37 @@
+import Qt 4.7
+Rectangle {
+ id: container
+ color: "red"
+ height: 200
+ width: 200
+ Column {
+ id: column
+ objectName: "column"
+ anchors.left: container.right
+ anchors.bottom: container.bottom
+
+ Rectangle {
+ id: rectangle
+ color: "blue"
+ height: 100
+ width: 200
+ }
+ Rectangle {
+ color: "blue"
+ height: 100
+ width: 200
+ }
+ }
+ states: State {
+ name: "reanchored"
+ AnchorChanges {
+ target: column
+ anchors.left: undefined
+ anchors.right: container.right
+ }
+ PropertyChanges {
+ target: rectangle
+ opacity: 0
+ }
+ }
+} \ No newline at end of file