aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpositioners/data
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-01-14 15:00:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-28 20:42:48 +0100
commit233e83b20512a5e3748542f1c279a5c7ec6310ad (patch)
treee8b900290c08f708753e08f3f9d356f65d07f7e5 /tests/auto/quick/qquickpositioners/data
parent8b62bb86cd94287a29fd1474efe04822523600df (diff)
Allow aligning items in a grid
This change introduces two new properties, horizontalItemAlignment and verticalItemAlignment to a Grid element. This gives the user the possibility to align the items. Change-Id: I7322a689f1bbc1da342bd618f6c30dd8c139ee29 Reviewed-by: Alan Alpert <aalpert@rim.com>
Diffstat (limited to 'tests/auto/quick/qquickpositioners/data')
-rw-r--r--tests/auto/quick/qquickpositioners/data/gridtest.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickpositioners/data/gridtest.qml b/tests/auto/quick/qquickpositioners/data/gridtest.qml
index 50bec1377b..fbe0b22b15 100644
--- a/tests/auto/quick/qquickpositioners/data/gridtest.qml
+++ b/tests/auto/quick/qquickpositioners/data/gridtest.qml
@@ -1,11 +1,15 @@
-import QtQuick 2.0
+import QtQuick 2.1
Item {
width: 640
height: 480
property bool testRightToLeft: false
+ property int testHAlignment: Grid.AlignLeft;
+ property int testVAlignment: Grid.AlignTop;
Grid {
layoutDirection: testRightToLeft ? Qt.RightToLeft : Qt.LeftToRight
+ horizontalItemAlignment: testHAlignment
+ verticalItemAlignment: testVAlignment
objectName: "grid"
columns: 3
Rectangle {