diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-07-17 18:32:16 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-24 05:01:59 +0200 |
commit | dbe4d2010816f1f22f48f3f5bce0d15d3ad7a7e2 (patch) | |
tree | d8e205e14e5497411ee7dd3d9a3c569851b73fb6 /examples/demos/maroon/maroon.qml | |
parent | bd2493e21d7619e448b205f215777d1d7b023075 (diff) |
Particle example restyling
For self-contained particle systems, placing them inside the
ParticleSystem element is encouraged.
Change-Id: Iafc5a94bb07c4c0dac0daec300d01e0fde165146
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'examples/demos/maroon/maroon.qml')
-rw-r--r-- | examples/demos/maroon/maroon.qml | 53 |
1 files changed, 24 insertions, 29 deletions
diff --git a/examples/demos/maroon/maroon.qml b/examples/demos/maroon/maroon.qml index c3b736bd65..9511a0f06f 100644 --- a/examples/demos/maroon/maroon.qml +++ b/examples/demos/maroon/maroon.qml @@ -56,42 +56,37 @@ Item { ParticleSystem { id: particles - } - - ImageParticle { - id: bubble - anchors.fill: parent - system: particles - source: "content/gfx/catch.png" - opacity: 0.25 - smooth: true - } - Wander { - system: particles anchors.fill: parent - xVariance: 25; - pace: 25; - } - Emitter { - id: fire - system: particles + ImageParticle { + id: bubble + anchors.fill: parent + source: "content/gfx/catch.png" + opacity: 0.25 + smooth: true + } - width: parent.width - height: 150 - anchors.bottom: parent.bottom - anchors.bottomMargin: 3 - startTime: 15000 + Wander { + xVariance: 25; + pace: 25; + } - emitRate: 2 - lifeSpan: 15000 + Emitter { + width: parent.width + height: 150 + anchors.bottom: parent.bottom + anchors.bottomMargin: 3 + startTime: 15000 - acceleration: PointDirection{ y: -6; xVariation: 2; yVariation: 2 } + emitRate: 2 + lifeSpan: 15000 - size: 24 - sizeVariation: 16 - } + acceleration: PointDirection{ y: -6; xVariation: 2; yVariation: 2 } + size: 24 + sizeVariation: 16 + } + } } Column { |