diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-10-30 05:10:20 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-10-30 05:10:20 (GMT) |
commit | b0c858dee261dec08dacd2c74671404f3229cb31 (patch) | |
tree | 91bc973369afd524338fe1a51bcd471584ffd916 /examples/declarative/parallax | |
parent | edc12380b662978a56622ed37f6e260b056646d3 (diff) | |
download | Qt-b0c858dee261dec08dacd2c74671404f3229cb31.zip Qt-b0c858dee261dec08dacd2c74671404f3229cb31.tar.gz Qt-b0c858dee261dec08dacd2c74671404f3229cb31.tar.bz2 |
small fixes to parallax example
Diffstat (limited to 'examples/declarative/parallax')
-rw-r--r-- | examples/declarative/parallax/ParallaxView.qml | 12 | ||||
-rw-r--r-- | 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" } } |