diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-03 05:00:54 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-03 05:00:54 (GMT) |
commit | 1896f6ef76c2af482f0c572f236e74a082aa9456 (patch) | |
tree | 0e66d752c0311023a311cb51ce004079cbba9279 /demos | |
parent | a23e4d3f55e7072ae3919092652b2dc915fc887f (diff) | |
download | Qt-1896f6ef76c2af482f0c572f236e74a082aa9456.zip Qt-1896f6ef76c2af482f0c572f236e74a082aa9456.tar.gz Qt-1896f6ef76c2af482f0c572f236e74a082aa9456.tar.bz2 |
Fix Flickr rotation
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/flickr/flickr.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/demos/declarative/flickr/flickr.qml b/demos/declarative/flickr/flickr.qml index 57fc349..c0a1a87 100644 --- a/demos/declarative/flickr/flickr.qml +++ b/demos/declarative/flickr/flickr.qml @@ -33,9 +33,10 @@ Item { id: Wrapper; width: 85; height: 85 scale: Wrapper.PathView.scale; z: Wrapper.PathView.z - transform: [ - Rotation3D { id: Rotation; origin.x: 30; axis.x: 30; axis.y: 60; angle: Wrapper.PathView.angle } - ] + transform: Rotation3D { + id: Rotation; origin.x: Wrapper.width/2; origin.y: Wrapper.height/2 + axis.y: 1; angle: Wrapper.PathView.angle + } Connection { sender: ImageDetails; signal: "closed()" @@ -112,14 +113,14 @@ Item { } } ] - + } } ] Item { id: Background - + anchors.fill: parent Image { source: "content/pics/background.png"; anchors.fill: parent } |