aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickstates/data/anchorRewindSize.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickstates/data/anchorRewindSize.qml')
-rw-r--r--tests/auto/quick/qquickstates/data/anchorRewindSize.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickstates/data/anchorRewindSize.qml b/tests/auto/quick/qquickstates/data/anchorRewindSize.qml
new file mode 100644
index 0000000000..8fbae05c6d
--- /dev/null
+++ b/tests/auto/quick/qquickstates/data/anchorRewindSize.qml
@@ -0,0 +1,30 @@
+import QtQuick
+
+Item {
+ id: root
+ width: 400
+ height: 400
+ property bool changeState: false
+ Item {
+ id: outer
+ anchors.fill: parent
+ Item {
+ id: inner
+ width: 100
+ height: 100
+ anchors.left: outer.left
+ anchors.top: outer.top
+ }
+ states: [
+ State {
+ when: root.changeState
+ AnchorChanges {
+ target: inner
+ anchors.right: outer.right
+ anchors.bottom: outer.bottom
+ }
+ }
+ ]
+ }
+}
+