From b0c858dee261dec08dacd2c74671404f3229cb31 Mon Sep 17 00:00:00 2001 From: Yann Bodson Date: Fri, 30 Oct 2009 15:10:20 +1000 Subject: small fixes to parallax example --- examples/declarative/parallax/ParallaxView.qml | 12 +++++------- examples/declarative/parallax/parallax.qml | 27 +++++++------------------- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/examples/declarative/parallax/ParallaxView.qml b/examples/declarative/parallax/ParallaxView.qml index 50ab72c..ac84b47 100644 --- a/examples/declarative/parallax/ParallaxView.qml +++ b/examples/declarative/parallax/ParallaxView.qml @@ -37,6 +37,11 @@ Item { ListView { id: selector + Rectangle { + color: "#60FFFFFF" + x: -10; y: -10; radius: 10; z: -1 + width: parent.width + 20; height: parent.height + 20 + } currentIndex: root.currentIndex onCurrentIndexChanged: root.currentIndex = currentIndex @@ -80,12 +85,5 @@ Item { } } model: visualModel.children - - Rectangle { - color: "#40FFFFFF" - x: -10; - y: -10; - width: parent.width + 20; height: parent.height + 10 - } } } diff --git a/examples/declarative/parallax/parallax.qml b/examples/declarative/parallax/parallax.qml index e3a7d93..b64f15f 100644 --- a/examples/declarative/parallax/parallax.qml +++ b/examples/declarative/parallax/parallax.qml @@ -4,8 +4,7 @@ import "../clocks/content" Rectangle { id: root - width: 320 - height: 480 + width: 320; height: 480 ParallaxView { id: parallax @@ -14,36 +13,24 @@ Rectangle { Item { property url icon: "pics/yast-wol.png" - width: 320 - height: 480 - + width: 320; height: 480 Clock { anchors.centerIn: parent } } Item { property url icon: "pics/home-page.svg" - - width: 320 - height: 480 - - Smiley {} + width: 320; height: 480 + Smiley { } } Item { property url icon: "pics/yast-joystick.png" - - width: 320 - height: 480 + width: 320; height: 480 Loader { - anchors.top: parent.top - anchors.topMargin: 10 - anchors.horizontalCenter: parent.horizontalCenter - + anchors { top: parent.top; topMargin: 10; horizontalCenter: parent.horizontalCenter } width: 300; height: 400 - clip: true - resizeMode: Loader.SizeItemToLoader - + clip: true; resizeMode: Loader.SizeItemToLoader source: "../../../demos/declarative/samegame/samegame.qml" } } -- cgit v0.12