summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-07 00:50:56 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-07 00:50:56 (GMT)
commita0c5e46be1e1584e9731ad4766b256a6bb499b86 (patch)
tree9494c2933c39c273c663af36bef02f3da26d44cb /demos/declarative/flickr
parentc76d7271817bcc4b19b8daf9b666349645f52c18 (diff)
downloadQt-a0c5e46be1e1584e9731ad4766b256a6bb499b86.zip
Qt-a0c5e46be1e1584e9731ad4766b256a6bb499b86.tar.gz
Qt-a0c5e46be1e1584e9731ad4766b256a6bb499b86.tar.bz2
Fix z handling to avoid uglyness
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r--demos/declarative/flickr/flickr.qml18
1 files changed, 14 insertions, 4 deletions
diff --git a/demos/declarative/flickr/flickr.qml b/demos/declarative/flickr/flickr.qml
index 0ff539d..5caffb9 100644
--- a/demos/declarative/flickr/flickr.qml
+++ b/demos/declarative/flickr/flickr.qml
@@ -74,8 +74,9 @@ Item {
states: [
State {
name: "Details"
+ SetProperties { target: ImageDetails; z: 2 }
ParentChange { target: Wrapper; parent: ImageDetails.frontContainer }
- SetProperties { target: Wrapper; x: 45; y: 35; scale: 1 }
+ SetProperties { target: Wrapper; x: 45; y: 35; scale: 1; z: 1000 }
SetProperties { target: Rotation; angle: 0 }
SetProperties { target: Shadows; opacity: 0 }
SetProperties { target: ImageDetails; y: 20 }
@@ -89,11 +90,20 @@ Item {
transitions: [
Transition {
- fromState: "*"; toState: "*"
+ fromState: "*"; toState: "Details"
ParentChangeAction { }
NumericAnimation { properties: "x,y,scale,opacity,angle"; duration: 500; easing: "easeInOutQuad" }
+ },
+ Transition {
+ fromState: "Details"; toState: "*"
+ SequentialAnimation {
+ ParentChangeAction { }
+ NumericAnimation { properties: "x,y,scale,opacity,angle"; duration: 500; easing: "easeInOutQuad" }
+ SetPropertyAction { filter: Wrapper; properties: "z" }
+ }
}
]
+
}
}
]
@@ -105,12 +115,12 @@ Item {
GridView {
id: PhotoGridView; model: FeedModel; delegate: PhotoDelegate
- cellWidth: 105; cellHeight: 105; x:32; y: 80; width: 800; height: 330
+ cellWidth: 105; cellHeight: 105; x:32; y: 80; width: 800; height: 330; z: 1
}
PathView {
id: PhotoPathView; model: FeedModel; delegate: PhotoDelegate
- y: -380; width: 800; height: 330; pathItemCount: 10
+ y: -380; width: 800; height: 330; pathItemCount: 10; z: 1
path: Path {
startX: -50; startY: 40;