diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-11-05 05:05:31 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-11-05 05:05:31 (GMT) |
commit | b3005a52a7a2c90721886e48c792a97ddc8e564d (patch) | |
tree | 6c9e74cf8b60e670255905c4e0b8a32c67393302 /examples/declarative | |
parent | b8e788865cae90122e51ad1a2649d0891370fb3d (diff) | |
parent | e4e3b8f336b6c7d0dd52d4b8af96fee1dc628783 (diff) | |
download | Qt-b3005a52a7a2c90721886e48c792a97ddc8e564d.zip Qt-b3005a52a7a2c90721886e48c792a97ddc8e564d.tar.gz Qt-b3005a52a7a2c90721886e48c792a97ddc8e564d.tar.bz2 |
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/tutorials/samegame/samegame4/content/BoomBlock.qml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame4/content/BoomBlock.qml b/examples/declarative/tutorials/samegame/samegame4/content/BoomBlock.qml index 7ad8b07..4c2ba43 100644 --- a/examples/declarative/tutorials/samegame/samegame4/content/BoomBlock.qml +++ b/examples/declarative/tutorials/samegame/samegame4/content/BoomBlock.qml @@ -31,9 +31,11 @@ Item { id:block //![3] Particles { id: particles - width:1; height:1; anchors.centerIn: parent; opacity: 0 - lifeSpan: 700; lifeSpanDeviation: 600; count:0; streamIn: false - angle: 0; angleDeviation: 360; velocity: 100; velocityDeviation:30 + width:1; height:1; anchors.centerIn: parent; + emissionRate: 0; + lifeSpan: 700; lifeSpanDeviation: 600; + angle: 0; angleDeviation: 360; + velocity: 100; velocityDeviation:30; source: { if(type == 0){ "pics/redStar.png"; @@ -52,10 +54,9 @@ Item { id:block PropertyChanges { target: img; opacity: 1 } }, State{ name: "DeathState"; when: dying == true - PropertyChanges { target: particles; count: 50 } - PropertyChanges { target: particles; opacity: 1 } - PropertyChanges { target: particles; emitting: false } // i.e. emit only once + StateChangeScript { script: particles.burst(50); } PropertyChanges { target: img; opacity: 0 } + StateChangeScript { script: block.destroy(1000); } } ] //![4] |