summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/minehunt/minehunt.qml15
-rw-r--r--examples/declarative/snow/snow.qml2
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
}
}