diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-07-28 06:34:46 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-07-29 03:47:31 (GMT) |
commit | 804bac13d742251f5665dbddc32ff00c4ab86b39 (patch) | |
tree | 9c626d1ff827e8deb937f67cb88037f49af63ef8 /demos | |
parent | 9684a3aa09878fe305ca22fad85617fe7ac37786 (diff) | |
download | Qt-804bac13d742251f5665dbddc32ff00c4ab86b39.zip Qt-804bac13d742251f5665dbddc32ff00c4ab86b39.tar.gz Qt-804bac13d742251f5665dbddc32ff00c4ab86b39.tar.bz2 |
simplify the code.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/flickr/content/ImageDetails.qml | 7 |
1 files 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" |