aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickstates/data/anchorRewindBug2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickstates/data/anchorRewindBug2.qml')
-rw-r--r--tests/auto/quick/qquickstates/data/anchorRewindBug2.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickstates/data/anchorRewindBug2.qml b/tests/auto/quick/qquickstates/data/anchorRewindBug2.qml
new file mode 100644
index 0000000000..574ef473ce
--- /dev/null
+++ b/tests/auto/quick/qquickstates/data/anchorRewindBug2.qml
@@ -0,0 +1,25 @@
+import QtQuick 2.0
+
+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
+ }
+ }
+ ]
+}