diff options
author | Damian Jansen <damian.jansen@nokia.com> | 2012-05-15 14:32:07 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-30 06:01:49 +0200 |
commit | f7e3a33cb80f3cc289aea9e59f53111d730b5927 (patch) | |
tree | 2bca0d946860b27ba51648692cf21673f7a9c2bb /tests/testapplications/elements/content/RectangleElement.qml | |
parent | 486ec88d2b88378768487a12dcbf6493c33d5699 (diff) |
Clean up visuals of elements test
Elements were not being displayed correctly on small screens,
i.e. devices. Should anchor these to the bottom, rather than center.
Also fix layout element child positions, as opacity is not used to
determine placement - use visible property instead.
Change-Id: I9fff7e64f3f03f1a4d60a242fb8f95629da6f7c9
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/testapplications/elements/content/RectangleElement.qml')
-rw-r--r-- | tests/testapplications/elements/content/RectangleElement.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/testapplications/elements/content/RectangleElement.qml b/tests/testapplications/elements/content/RectangleElement.qml index 327aa49c5e..350bf75d8f 100644 --- a/tests/testapplications/elements/content/RectangleElement.qml +++ b/tests/testapplications/elements/content/RectangleElement.qml @@ -47,8 +47,10 @@ Item { id: rectangleelementtest Rectangle { id: rectangleelement - height: 100; width: 100; color: "blue"; border.width: 2; border.color: "red"; border.aligned: false; smooth: true - anchors.centerIn: parent + height: 100; width: 100; color: "blue"; border.width: 2; border.color: "red"; smooth: true + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + anchors.bottomMargin: 15 Behavior on height { NumberAnimation { duration: 1000 } } Behavior on width { NumberAnimation { duration: 1000 } } Behavior on radius { NumberAnimation { duration: 1000 } } |