diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-03-07 17:10:14 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-09 11:03:23 +0100 |
commit | 576fb7a8c9e15052f8662e3fcbe03a87c8316939 (patch) | |
tree | 365b607d0b7c33eddfb5b3110d047d23ace6daea /examples/quick/righttoleft/layoutdirection | |
parent | 4b56661fd27cf6ce0c9410759fbd5c390e41dd69 (diff) |
Update righttoleft examples to new form factor
Change-Id: I2591f45a91da8bad90c5f3b9c963199c57bcf74d
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'examples/quick/righttoleft/layoutdirection')
-rw-r--r-- | examples/quick/righttoleft/layoutdirection/layoutdirection.qml | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/examples/quick/righttoleft/layoutdirection/layoutdirection.qml b/examples/quick/righttoleft/layoutdirection/layoutdirection.qml index 0c65647d5b..ee8e52848a 100644 --- a/examples/quick/righttoleft/layoutdirection/layoutdirection.qml +++ b/examples/quick/righttoleft/layoutdirection/layoutdirection.qml @@ -46,14 +46,18 @@ Rectangle { property int direction: Qt.application.layoutDirection LayoutMirroring.enabled: mirror LayoutMirroring.childrenInherit: true - width: column.width + 80 - height: column.height + 40 + width: 320 + height: 480 Column { - id: column - width: 190 + id: columnA spacing: 10 - anchors.centerIn: parent + x: 10 + y: 10 + width: 140 + Item { + id: rowCell + } Text { text: "Row" anchors.horizontalCenter: parent.horizontalCenter @@ -68,7 +72,7 @@ Rectangle { } } Repeater { - model: 4 + model: 3 Loader { property int value: index sourceComponent: positionerDelegate @@ -83,14 +87,14 @@ Rectangle { Grid { layoutDirection: root.direction - spacing: 10; columns: 4 + spacing: 10; columns: 3 move: Transition { NumberAnimation { properties: "x" } } Repeater { - model: 11 + model: 8 Loader { property int value: index sourceComponent: positionerDelegate @@ -112,13 +116,19 @@ Rectangle { } } Repeater { - model: 10 + model: 8 Loader { property int value: index sourceComponent: positionerDelegate } } } + } + Column { + id: columnB + spacing: 10 + x: 160 + y: 10 Text { text: "ListView" @@ -142,7 +152,7 @@ Rectangle { GridView { clip: true - width: 200; height: 160 + width: 150; height: 160 cellWidth: 50; cellHeight: 50 layoutDirection: root.direction model: 48 |