diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-10-27 05:34:38 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-10-27 07:28:38 (GMT) |
commit | 3b2372c9dda9dbe6b6356d2c264e1b5b499c72a4 (patch) | |
tree | 12883c69e6508b7edadec75fde8e2a2046b45f75 /demos/declarative/samegame | |
parent | 50c2577faedaba3e3bf81b2492313de00bacb7c0 (diff) | |
download | Qt-3b2372c9dda9dbe6b6356d2c264e1b5b499c72a4.zip Qt-3b2372c9dda9dbe6b6356d2c264e1b5b499c72a4.tar.gz Qt-3b2372c9dda9dbe6b6356d2c264e1b5b499c72a4.tar.bz2 |
SameGame cleans up blocks now.
Blocks now delete themselves on their death.
Diffstat (limited to 'demos/declarative/samegame')
-rw-r--r-- | demos/declarative/samegame/content/BoomBlock.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/declarative/samegame/content/BoomBlock.qml b/demos/declarative/samegame/content/BoomBlock.qml index 34f6f56..b0c297b 100644 --- a/demos/declarative/samegame/content/BoomBlock.qml +++ b/demos/declarative/samegame/content/BoomBlock.qml @@ -49,6 +49,7 @@ Item { id:block PropertyChanges { target: particles; opacity: 1 } PropertyChanges { target: particles; emitting: false } // i.e. emit only once PropertyChanges { target: img; opacity: 0 } + StateChangeScript { script: block.destroy(1000); } } ] } |