diff options
Diffstat (limited to 'examples/declarative/particles/trails/shimmer.qml')
-rw-r--r-- | examples/declarative/particles/trails/shimmer.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/declarative/particles/trails/shimmer.qml b/examples/declarative/particles/trails/shimmer.qml index 2bd4f6980f..90b47bc6b7 100644 --- a/examples/declarative/particles/trails/shimmer.qml +++ b/examples/declarative/particles/trails/shimmer.qml @@ -47,7 +47,13 @@ Rectangle{ color: "black" MouseArea{ anchors.fill: parent - onClicked: particles.running = !particles.running + acceptedButtons: Qt.LeftButton | Qt.RightButton + onClicked: { + if (mouse.button == Qt.LeftButton) + particles.running = !particles.running + else + particles.paused = !particles.paused; + } } ParticleSystem{ id: particles @@ -66,7 +72,6 @@ Rectangle{ system: particles emitRate: 2000 lifeSpan: 2000 - emitting: true size: 30 sizeVariation: 10 } |