diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-06-29 17:06:38 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-06 05:24:45 +0200 |
commit | aeac9840e4c46786e84ab7eb16a89db22d4ff81a (patch) | |
tree | 2aaae5a3dccfa9ee447f0896a659cc60caba5b86 /tests/auto/quick/qquickanchors/data | |
parent | ea9c14f3e1a42080be03d95b825a7ba8ed303bbc (diff) |
Allow all explicit margins to override margins.
Task-number: QTBUG-24515
Change-Id: Ibfc657dec9fd0c8e71cf3686a04ea7b00ad72c11
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickanchors/data')
-rw-r--r-- | tests/auto/quick/qquickanchors/data/individualMargins.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickanchors/data/individualMargins.qml b/tests/auto/quick/qquickanchors/data/individualMargins.qml new file mode 100644 index 0000000000..ce2899afe4 --- /dev/null +++ b/tests/auto/quick/qquickanchors/data/individualMargins.qml @@ -0,0 +1,16 @@ +import QtQuick 2.0 + +Rectangle { + width: 200; height: 200 + Rectangle { + objectName: "filler" + width: 50; height: 50; color: "blue" + anchors.left: parent.left; + anchors.top: parent.top + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.margins: 10 + anchors.leftMargin: 5 + anchors.topMargin: 6 + } +} |