summaryrefslogtreecommitdiffstats
path: root/demos/declarative
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-10-27 05:34:38 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-10-27 07:28:38 (GMT)
commit3b2372c9dda9dbe6b6356d2c264e1b5b499c72a4 (patch)
tree12883c69e6508b7edadec75fde8e2a2046b45f75 /demos/declarative
parent50c2577faedaba3e3bf81b2492313de00bacb7c0 (diff)
downloadQt-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')
-rw-r--r--demos/declarative/samegame/content/BoomBlock.qml1
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); }
}
]
}