From beecd8388bc5f3f95c221027318642429f1902cb Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Tue, 28 Feb 2012 13:20:56 +1000 Subject: Update ImageElement examples Now more consistently formed. Required a UI redesign for border image, you now view one at a time, with a selector control. Change-Id: Idf64119b644c1a79779ea0a46412247d6d013cb1 Reviewed-by: Alan Alpert Reviewed-by: Yann Bodson --- examples/qtquick/imageelements/image.qml | 34 +++++++++++++------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'examples/qtquick/imageelements/image.qml') diff --git a/examples/qtquick/imageelements/image.qml b/examples/qtquick/imageelements/image.qml index 159558995d..ccefaf6b74 100644 --- a/examples/qtquick/imageelements/image.qml +++ b/examples/qtquick/imageelements/image.qml @@ -44,29 +44,23 @@ import "content" Rectangle { width: 320 height: 480 - Flickable { - anchors.fill: parent - contentWidth: 490 - contentHeight: 285 - - Grid { - property int cellWidth: (width - (spacing * (columns - 1))) / columns - property int cellHeight: (height - (spacing * (rows - 1))) / rows + Grid { + property int cellWidth: (width - (spacing * (columns - 1))) / columns + property int cellHeight: (height - (spacing * (rows - 1))) / rows - anchors.fill: parent - anchors.margins: 30 + anchors.fill: parent + anchors.margins: 30 - columns: 3 - rows: 2 - spacing: 30 + columns: 2 + rows: 3 + spacing: 30 - ImageCell { mode: Image.Stretch; caption: "Stretch" } - ImageCell { mode: Image.PreserveAspectFit; caption: "PreserveAspectFit" } - ImageCell { mode: Image.PreserveAspectCrop; caption: "PreserveAspectCrop" } + ImageCell { mode: Image.Stretch; caption: "Stretch" } + ImageCell { mode: Image.PreserveAspectFit; caption: "PreserveAspectFit" } + ImageCell { mode: Image.PreserveAspectCrop; caption: "PreserveAspectCrop" } - ImageCell { mode: Image.Tile; caption: "Tile" } - ImageCell { mode: Image.TileHorizontally; caption: "TileHorizontally" } - ImageCell { mode: Image.TileVertically; caption: "TileVertically" } - } + ImageCell { mode: Image.Tile; caption: "Tile" } + ImageCell { mode: Image.TileHorizontally; caption: "TileHorizontally" } + ImageCell { mode: Image.TileVertically; caption: "TileVertically" } } } -- cgit v1.2.3