From 804bac13d742251f5665dbddc32ff00c4ab86b39 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 28 Jul 2009 08:34:46 +0200 Subject: simplify the code. --- demos/declarative/flickr/content/ImageDetails.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/demos/declarative/flickr/content/ImageDetails.qml b/demos/declarative/flickr/content/ImageDetails.qml index 1649b44..26bac32 100644 --- a/demos/declarative/flickr/content/ImageDetails.qml +++ b/demos/declarative/flickr/content/ImageDetails.qml @@ -15,14 +15,13 @@ Flipable { property string photoUrl property int rating: 2 property var prevScale: 1.0 - property int rotation: 0 signal closed transform: Rotation3D { + id: Rotation origin.x: Container.width / 2; axis.y: 1; - angle: Container.rotation; } front: Item { @@ -137,7 +136,7 @@ Flipable { states: [ State { name: "Back" - SetProperties { target: Container; rotation: 180 } + SetProperties { target: Rotation; angle: 180 } } ] @@ -149,7 +148,7 @@ Flipable { property: "smooth" value: false } - NumberAnimation { easing: "easeInOutQuad"; properties: "rotation"; duration: 500 } + NumberAnimation { easing: "easeInOutQuad"; properties: "angle"; duration: 500 } SetPropertyAction { target: BigImage property: "smooth" -- cgit v0.12