diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-08-14 19:30:28 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-08-14 19:32:15 (GMT) |
commit | 02e5239002786a55d68f04a512baa7d4c5f40e66 (patch) | |
tree | 63c4a54b3120b17acdc49d3dbe300ee30e73bcac /doc/src/snippets/declarative | |
parent | 36a87c0a6cbc858dc5ae443cb16ded0f92c7725a (diff) | |
download | Qt-02e5239002786a55d68f04a512baa7d4c5f40e66.zip Qt-02e5239002786a55d68f04a512baa7d4c5f40e66.tar.gz Qt-02e5239002786a55d68f04a512baa7d4c5f40e66.tar.bz2 |
readd and fix the qml documentation for Rotation and Scale
This got forgotten during the move to QGraphicsTransform.
The docs also required a few adjustments as Rotation3D is
now gone and some properties in Scale and Rotation have
changed.
Diffstat (limited to 'doc/src/snippets/declarative')
-rw-r--r-- | doc/src/snippets/declarative/rotation.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/snippets/declarative/rotation.qml b/doc/src/snippets/declarative/rotation.qml index c7e184f..ab7d4ca 100644 --- a/doc/src/snippets/declarative/rotation.qml +++ b/doc/src/snippets/declarative/rotation.qml @@ -10,19 +10,19 @@ Rect { Image { source: "pics/qt.png" } Image { source: "pics/qt.png" - transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 18 } + transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0 angle: 18 } } Image { source: "pics/qt.png" - transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 36 } + transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0 angle: 36 } } Image { source: "pics/qt.png" - transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 54 } + transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0; angle: 54 } } Image { source: "pics/qt.png" - transform: Rotation3D { axis.startX: 30; axis.endX: 30; axis.endY: 60; angle: 72 } + transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0; angle: 72 } } } //! [0] |