aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/trails/overburst.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/particles/trails/overburst.qml')
-rw-r--r--examples/declarative/particles/trails/overburst.qml14
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/declarative/particles/trails/overburst.qml b/examples/declarative/particles/trails/overburst.qml
index ca6bc6dedc..baf1bf3046 100644
--- a/examples/declarative/particles/trails/overburst.qml
+++ b/examples/declarative/particles/trails/overburst.qml
@@ -45,7 +45,10 @@ Rectangle{
color: "black"
width: 360
height: 540
- ParticleSystem{ id: sys }
+ ParticleSystem{
+ id: sys
+ onEmptyChanged: if (empty) sys.pause();
+ }
ImageParticle{
system: sys
id: cp
@@ -57,24 +60,25 @@ Rectangle{
//burst on click
id: bursty
system: sys
- emitting: ma.pressed
+ enabled: ma.pressed
x: ma.mouseX
y: ma.mouseY
emitRate: 16000
- emitCap: 4000
- acceleration: AngledDirection{angleVariation: 360; magnitude: 360; }
+ maximumEmitted: 4000
+ acceleration: AngleDirection{angleVariation: 360; magnitude: 360; }
size: 8
endSize: 16
sizeVariation: 4
}
MouseArea{
anchors.fill: parent
+ onPressed: sys.resume()
id: ma
}
MouseArea{
width: 100
height: 100
- onClicked: bursty.noCap = true;
+ onClicked: bursty.maximumEmitted = -1;
id: ma2
Rectangle{
anchors.fill: parent