aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/imageparticle/rotation.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/particles/imageparticle/rotation.qml')
-rw-r--r--examples/declarative/particles/imageparticle/rotation.qml11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/declarative/particles/imageparticle/rotation.qml b/examples/declarative/particles/imageparticle/rotation.qml
index fe77e43f73..d5a6e8d315 100644
--- a/examples/declarative/particles/imageparticle/rotation.qml
+++ b/examples/declarative/particles/imageparticle/rotation.qml
@@ -49,20 +49,23 @@ Rectangle {
ImageParticle {
id: up
system: sys
- source: "../images/smile.png"
+ source: "../images/starfish_2.png"
}
Emitter {
anchors.centerIn: parent
system: sys
- emitRate: 1000
- size: 20
+ emitRate: 10
+ size: 200
lifeSpan: 10000
speed: AngleDirection {angleVariation: 360; magnitudeVariation: 100;}
}
MouseArea {
anchors.fill: parent
- onClicked: up.autoRotation = !up.autoRotation
+ onClicked: {
+ up.autoRotation = !up.autoRotation
+ up.rotation = up.autoRotation ? -90 : 0
+ }
}
}