summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-10-30 05:10:20 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-10-30 05:10:20 (GMT)
commitb0c858dee261dec08dacd2c74671404f3229cb31 (patch)
tree91bc973369afd524338fe1a51bcd471584ffd916 /examples/declarative
parentedc12380b662978a56622ed37f6e260b056646d3 (diff)
downloadQt-b0c858dee261dec08dacd2c74671404f3229cb31.zip
Qt-b0c858dee261dec08dacd2c74671404f3229cb31.tar.gz
Qt-b0c858dee261dec08dacd2c74671404f3229cb31.tar.bz2
small fixes to parallax example
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/parallax/ParallaxView.qml12
-rw-r--r--examples/declarative/parallax/parallax.qml27
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"
}
}