From 3b2372c9dda9dbe6b6356d2c264e1b5b499c72a4 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Tue, 27 Oct 2009 15:34:38 +1000 Subject: SameGame cleans up blocks now. Blocks now delete themselves on their death. --- demos/declarative/samegame/content/BoomBlock.qml | 1 + 1 file changed, 1 insertion(+) 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); } } ] } -- cgit v0.12