aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/particles/trails/shimmer.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/declarative/particles/trails/shimmer.qml b/examples/declarative/particles/trails/shimmer.qml
index 2bd4f6980f..d195a4477b 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