diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-22 00:32:16 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-22 00:37:31 (GMT) |
commit | 61943383ccff409d60d9837d58e4372dc6f22f23 (patch) | |
tree | b030d569a1c4a31a20b87c3b0b80f4ee6d2fec7a /tests/auto/declarative/anchors/data | |
parent | 942ea5202d4a329376c27015b07406c2018437ff (diff) | |
download | Qt-61943383ccff409d60d9837d58e4372dc6f22f23.zip Qt-61943383ccff409d60d9837d58e4372dc6f22f23.tar.gz Qt-61943383ccff409d60d9837d58e4372dc6f22f23.tar.bz2 |
Add support for baseline anchoring.
Diffstat (limited to 'tests/auto/declarative/anchors/data')
-rw-r--r-- | tests/auto/declarative/anchors/data/illegal1.qml | 10 | ||||
-rw-r--r-- | tests/auto/declarative/anchors/data/illegal2.qml | 11 | ||||
-rw-r--r-- | tests/auto/declarative/anchors/data/illegal3.qml | 10 |
3 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/declarative/anchors/data/illegal1.qml b/tests/auto/declarative/anchors/data/illegal1.qml new file mode 100644 index 0000000..635bf95 --- /dev/null +++ b/tests/auto/declarative/anchors/data/illegal1.qml @@ -0,0 +1,10 @@ +Rect { + id: rect + width: 120; height: 200; color: "white" + Rect { id: TheRect; width: 100; height: 100 } + Rect { + anchors.left: TheRect.left + anchors.right: TheRect.right + anchors.horizontalCenter: TheRect.horizontalCenter + } +} diff --git a/tests/auto/declarative/anchors/data/illegal2.qml b/tests/auto/declarative/anchors/data/illegal2.qml new file mode 100644 index 0000000..425d0e4 --- /dev/null +++ b/tests/auto/declarative/anchors/data/illegal2.qml @@ -0,0 +1,11 @@ +Rect { + id: rect + width: 120; height: 200; color: "white" + Text { id: Text1; text: "Hello" } + Text { + id: Text2; + anchors.baseline: Text1.baseline; + anchors.top: Text1.top; + text: "World" + } +} diff --git a/tests/auto/declarative/anchors/data/illegal3.qml b/tests/auto/declarative/anchors/data/illegal3.qml new file mode 100644 index 0000000..fa48b78 --- /dev/null +++ b/tests/auto/declarative/anchors/data/illegal3.qml @@ -0,0 +1,10 @@ +Rect { + id: rect + width: 120; height: 200; color: "white" + Item { + Rect { id: TheRect; width: 100; height: 100 } + } + Rect { + anchors.left: TheRect.left + } +} |