summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/anchors/data
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
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')
-rw-r--r--tests/auto/declarative/anchors/data/loop1.qml6
-rw-r--r--tests/auto/declarative/anchors/data/loop2.qml18
2 files changed, 24 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" }
+}
diff --git a/tests/auto/declarative/anchors/data/loop2.qml b/tests/auto/declarative/anchors/data/loop2.qml
new file mode 100644
index 0000000..4b2c74e
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/loop2.qml
@@ -0,0 +1,18 @@
+Rect {
+ id: container;
+ width: 600;
+ height: 600;
+
+ Image {
+ id: Image1
+ source: "http://labs.trolltech.com/blogs/wp-content/uploads/2009/03/3311388091_ac2a257feb.jpg"
+ anchors.right: Image2.left
+ }
+
+ Image {
+ id: Image2
+ source: "http://labs.trolltech.com/blogs/wp-content/uploads/2009/03/oslo_groupphoto.jpg"
+ anchors.left: Image1.right
+ anchors.leftMargin: 20
+ }
+}