diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-07-27 10:39:07 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-07-29 03:47:26 (GMT) |
commit | 27015a7662a8a1b2852f2d43d948c51ac4e90070 (patch) | |
tree | 2c22ea56e3ea55b1f13c9e284bb58ded70fdfa21 /examples/declarative | |
parent | c12f369d16e8993594680485758f44c813b78f45 (diff) | |
download | Qt-27015a7662a8a1b2852f2d43d948c51ac4e90070.zip Qt-27015a7662a8a1b2852f2d43d948c51ac4e90070.tar.gz Qt-27015a7662a8a1b2852f2d43d948c51ac4e90070.tar.bz2 |
fixes in examples and demos
Fixed all examples and demos to work after the
changes to Flipable and Rotation3D.
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/minehunt/minehunt.qml | 15 | ||||
-rw-r--r-- | examples/declarative/snow/snow.qml | 2 |
2 files changed, 9 insertions, 8 deletions
diff --git a/examples/declarative/minehunt/minehunt.qml b/examples/declarative/minehunt/minehunt.qml index 6220d96..df5c077 100644 --- a/examples/declarative/minehunt/minehunt.qml +++ b/examples/declarative/minehunt/minehunt.qml @@ -15,11 +15,12 @@ Item { id: flipable width: 40 height: 40 - axis: Axis { - startX: 20 - startY: 20 - endX: 20 - endY: 0 + property int angle: 0; + transform: Rotation3D { + originX: 20 + originY: 20 + axis.x: 1 + angle: flipable.angle; } front: Image { source: "pics/front.png" @@ -67,7 +68,7 @@ Item { State { name: "back" when: modelData.flipped - SetProperties { target: flipable; rotation: 180 } + SetProperties { target: flipable; angle: 180 } } ] transitions: [ @@ -90,7 +91,7 @@ Item { } NumberAnimation { easing: "easeInOutQuad" - properties: "rotation" + properties: "angle" } RunScriptAction{ script: if(modelData.hasMine && modelData.flipped) diff --git a/examples/declarative/snow/snow.qml b/examples/declarative/snow/snow.qml index aaed619..aa5185f 100644 --- a/examples/declarative/snow/snow.qml +++ b/examples/declarative/snow/snow.qml @@ -42,7 +42,7 @@ Rect { } transform: Rotation3D { - axis { startX: 0; startY: 0; endX: 0; endY: 1 } + axis.y: 1 angle: MyLayout.deform * 100 } } |