aboutsummaryrefslogtreecommitdiffstats
path: root/examples/particles/emitters/content/maximumemitted.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/particles/emitters/content/maximumemitted.qml')
-rw-r--r--examples/particles/emitters/content/maximumemitted.qml53
1 files changed, 27 insertions, 26 deletions
diff --git a/examples/particles/emitters/content/maximumemitted.qml b/examples/particles/emitters/content/maximumemitted.qml
index b99814ce88..b008135ff1 100644
--- a/examples/particles/emitters/content/maximumemitted.qml
+++ b/examples/particles/emitters/content/maximumemitted.qml
@@ -47,35 +47,36 @@ Rectangle {
height: 540
ParticleSystem {
id: sys
+ anchors.fill: parent
onEmptyChanged: if (empty) sys.pause();
- }
- ImageParticle {
- system: sys
- id: cp
- source: "../../images/particle.png"
- colorVariation: 0.4
- color: "#000000FF"
- }
+ ImageParticle {
+ system: sys
+ id: cp
+ source: "../../images/particle.png"
+ colorVariation: 0.4
+ color: "#000000FF"
+ }
- Emitter {
- //burst on click
- id: bursty
- system: sys
- enabled: ma.pressed
- x: ma.mouseX
- y: ma.mouseY
- emitRate: 16000
- maximumEmitted: 4000
- acceleration: AngleDirection {angleVariation: 360; magnitude: 360; }
- size: 8
- endSize: 16
- sizeVariation: 4
- }
+ Emitter {
+ //burst on click
+ id: bursty
+ system: sys
+ enabled: ma.pressed
+ x: ma.mouseX
+ y: ma.mouseY
+ emitRate: 16000
+ maximumEmitted: 4000
+ acceleration: AngleDirection {angleVariation: 360; magnitude: 360; }
+ size: 8
+ endSize: 16
+ sizeVariation: 4
+ }
- MouseArea {
- anchors.fill: parent
- onPressed: sys.resume()
- id: ma
+ MouseArea {
+ anchors.fill: parent
+ onPressed: sys.resume()
+ id: ma
+ }
}
}