summaryrefslogtreecommitdiffstats
path: root/demos/declarative/samegame/content/BoomBlock.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/samegame/content/BoomBlock.qml')
-rw-r--r--demos/declarative/samegame/content/BoomBlock.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/declarative/samegame/content/BoomBlock.qml b/demos/declarative/samegame/content/BoomBlock.qml
index 0f5d4da..9637bd6 100644
--- a/demos/declarative/samegame/content/BoomBlock.qml
+++ b/demos/declarative/samegame/content/BoomBlock.qml
@@ -11,6 +11,11 @@ Item { id:block
x: Follow { enabled: spawned; source: targetX; spring: 2; damping: 0.2 }
y: Follow { source: targetY; spring: 2; damping: 0.2 }
+ MouseRegion {
+ id: gameMR; anchors.fill: parent
+ onClicked: handleClick(Math.floor(parent.x/width), Math.floor(parent.y/height));
+ }
+
Image { id: img
source: {
if(type == 0){