summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/anchors/data/loop1.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-11 00:55:55 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-11 00:55:55 (GMT)
commitb2120975bf3cae6ba9c51d79ccab8104cfc16e75 (patch)
tree619c21d6ef226856894db933b60c561489297db6 /tests/auto/declarative/anchors/data/loop1.qml
parenta365bd8f0cc53353ec8d3335ffec2d7810cf1d2a (diff)
downloadQt-b2120975bf3cae6ba9c51d79ccab8104cfc16e75.zip
Qt-b2120975bf3cae6ba9c51d79ccab8104cfc16e75.tar.gz
Qt-b2120975bf3cae6ba9c51d79ccab8104cfc16e75.tar.bz2
Add simple loop detection to anchoring system.
Diffstat (limited to 'tests/auto/declarative/anchors/data/loop1.qml')
-rw-r--r--tests/auto/declarative/anchors/data/loop1.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/declarative/anchors/data/loop1.qml b/tests/auto/declarative/anchors/data/loop1.qml
new file mode 100644
index 0000000..a4de1bf
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/loop1.qml
@@ -0,0 +1,6 @@
+Rect {
+ id: rect
+ width: 120; height: 200; color: "white"
+ Text { id: Text1; anchors.right: Text2.right; text: "Hello" }
+ Text { id: Text2; anchors.right: Text1.right; anchors.rightMargin: 10; text: "World" }
+}