summaryrefslogtreecommitdiffstats
path: root/examples/declarative/minehunt/minehunt.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/minehunt/minehunt.qml')
-rw-r--r--examples/declarative/minehunt/minehunt.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/minehunt/minehunt.qml b/examples/declarative/minehunt/minehunt.qml
index 9db0e84..20c3874 100644
--- a/examples/declarative/minehunt/minehunt.qml
+++ b/examples/declarative/minehunt/minehunt.qml
@@ -7,7 +7,7 @@
<Component id="tile">
<Flipable id="flipable" width="40" height="40">
<transform>
- <Axis id="axis" xStart="20" xEnd="20" yStart="20" yEnd="0" />
+ <AxisRotation id="axis" axis.startX="20" axis.endX="20" axis.startY="20" axis.endY="0" />
</transform>
<front>
<Image src="pics/front.png" width="40" height="40">
@@ -34,14 +34,14 @@
</back>
<states>
<State name="back" when="{modelData.flipped == true}">
- <SetProperty target="{axis}" property="rotation" value="180" />
+ <SetProperty target="{axis}" property="angle" value="180" />
</State>
</states>
<transitions>
<Transition>
<SequentialAnimation>
<PauseAnimation duration="{var ret = Math.abs(flipable.parent.x-field.clickx) + Math.abs(flipable.parent.y-field.clicky); if (ret > 0) {if(modelData.hasMine==true &amp;&amp; modelData.flipped==true){ret*3;}else{ret;}} else {0}}"/>
- <NumericAnimation easing="easeInOutQuad" properties="rotation"/>
+ <NumericAnimation easing="easeInOutQuad" properties="angle"/>
</SequentialAnimation>
</Transition>
</transitions>