From 46c8be899a5e11030d174ac569bb7e77ab0b00a9 Mon Sep 17 00:00:00 2001 From: Yann Bodson Date: Thu, 7 May 2009 08:37:58 +1000 Subject: Small fix. Rotation was not set back to 0 properly. --- demos/declarative/flickr/flickr.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demos/declarative/flickr/flickr.qml b/demos/declarative/flickr/flickr.qml index c7cb699..0ff539d 100644 --- a/demos/declarative/flickr/flickr.qml +++ b/demos/declarative/flickr/flickr.qml @@ -30,7 +30,7 @@ Item { scale: Wrapper.PathView.scale; z: Wrapper.PathView.z transform: [ - Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: Wrapper.PathView.angle } + Rotation3D { id: Rotation; axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: Wrapper.PathView.angle } ] Connection { @@ -76,6 +76,7 @@ Item { name: "Details" ParentChange { target: Wrapper; parent: ImageDetails.frontContainer } SetProperties { target: Wrapper; x: 45; y: 35; scale: 1 } + SetProperties { target: Rotation; angle: 0 } SetProperties { target: Shadows; opacity: 0 } SetProperties { target: ImageDetails; y: 20 } SetProperties { target: PhotoGridView; y: "-480" } @@ -90,7 +91,7 @@ Item { Transition { fromState: "*"; toState: "*" ParentChangeAction { } - NumericAnimation { properties: "x,y,scale,opacity"; duration: 500; easing: "easeInOutQuad" } + NumericAnimation { properties: "x,y,scale,opacity,angle"; duration: 500; easing: "easeInOutQuad" } } ] } -- cgit v0.12