diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-27 05:05:36 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-27 05:05:36 (GMT) |
commit | 7a0f9e754f76b052bf1474ec7c1d5f59b774de54 (patch) | |
tree | 0946cfa453463bc30dfd4a228dd16eda04f120fd /examples/declarative/parallax/parallax.qml | |
parent | af7a8523d28539f719d3e3b82d7cf6628bbdd74a (diff) | |
download | Qt-7a0f9e754f76b052bf1474ec7c1d5f59b774de54.zip Qt-7a0f9e754f76b052bf1474ec7c1d5f59b774de54.tar.gz Qt-7a0f9e754f76b052bf1474ec7c1d5f59b774de54.tar.bz2 |
Update parallax example
Diffstat (limited to 'examples/declarative/parallax/parallax.qml')
-rw-r--r-- | examples/declarative/parallax/parallax.qml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/examples/declarative/parallax/parallax.qml b/examples/declarative/parallax/parallax.qml index b2139ec..52bd210 100644 --- a/examples/declarative/parallax/parallax.qml +++ b/examples/declarative/parallax/parallax.qml @@ -2,14 +2,18 @@ import Qt 4.6 import "../clock" Rectangle { + id: root + width: 320 height: 480 ParallaxView { + id: parallax anchors.fill: parent background: "pics/background.jpg" Item { + property url icon: "pics/yast-wol.png" width: 320 height: 480 @@ -19,6 +23,8 @@ Rectangle { } Item { + property url icon: "pics/home-page.svg" + width: 320 height: 480 @@ -26,18 +32,24 @@ Rectangle { } Item { + property url icon: "pics/yast-joystick.png" + width: 320 height: 480 Loader { - anchors.centerIn: parent - width: 300; height: 460 + anchors.top: parent.top + anchors.topMargin: 10 + anchors.horizontalCenter: parent.horizontalCenter + + width: 300; height: 400 clip: true resizeMode: Loader.SizeItemToLoader source: "../../../demos/declarative/samegame/samegame.qml" } } - } + currentIndex: root.currentIndex + } } |