diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-09-01 17:59:11 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-08 02:03:13 +0200 |
commit | d00a2ef6ab2081d73475460d12b5a35d32923a9a (patch) | |
tree | c4b4a983d62fc4ee223126887bea8e5e342a8d7f /examples | |
parent | fee3fe7d76f1a4556130a097dceb818cc6f33c47 (diff) |
Add clear property to QSGParticleSystem
Makes it possible to pause the system when all particles are expired.
Change-Id: Iebeb987c2e2af261bdffa4584d75f3b108dcf050
Reviewed-on: http://codereview.qt-project.org/4046
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/particles/trails/overburst.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/declarative/particles/trails/overburst.qml b/examples/declarative/particles/trails/overburst.qml index ca6bc6dedc..620ae46088 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 + onClearChanged: if (clear) sys.pause(); + } ImageParticle{ system: sys id: cp @@ -69,6 +72,7 @@ Rectangle{ } MouseArea{ anchors.fill: parent + onPressed: sys.resume() id: ma } MouseArea{ |