diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-09-04 01:04:39 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-09-04 01:04:39 (GMT) |
commit | 89ce8d3b2a389a405f97d42bafa47ef244324822 (patch) | |
tree | 4b2bb84bb51af405417ab6583267983b1bfcc0f0 /demos/declarative/minehunt/Explosion.qml | |
parent | 3d209a098d9abf5f8ffe9b64b27adbe622e84497 (diff) | |
parent | f0844f9da7a834c282f6f04b2676f28de444e9dc (diff) | |
download | Qt-89ce8d3b2a389a405f97d42bafa47ef244324822.zip Qt-89ce8d3b2a389a405f97d42bafa47ef244324822.tar.gz Qt-89ce8d3b2a389a405f97d42bafa47ef244324822.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts:
src/declarative/fx/qfxflickable.cpp
Diffstat (limited to 'demos/declarative/minehunt/Explosion.qml')
-rw-r--r-- | demos/declarative/minehunt/Explosion.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/demos/declarative/minehunt/Explosion.qml b/demos/declarative/minehunt/Explosion.qml new file mode 100644 index 0000000..a997048 --- /dev/null +++ b/demos/declarative/minehunt/Explosion.qml @@ -0,0 +1,29 @@ +import Qt 4.6 + +Item { + property bool explode : false + + Particles { + id: particles + width: 40 + height: 40 + lifeSpan: 1000 + lifeSpanDeviation: 0 + source: "pics/star.png" + count: 0 + angle: 270 + angleDeviation: 360 + velocity: 100 + velocityDeviation: 20 + z: 100 + opacity: 0 + streamIn: false + } + states: [ State { name: "exploding"; when: explode == true + PropertyChanges { target: particles; count: 200 } + PropertyChanges { target: particles; opacity: 1 } + PropertyChanges { target: particles; emitting: false } // i.e. emit only once + } + ] + +} |