diff options
Diffstat (limited to 'demos/declarative/samegame/content/FastBlock.qml')
-rw-r--r-- | demos/declarative/samegame/content/FastBlock.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/declarative/samegame/content/FastBlock.qml b/demos/declarative/samegame/content/FastBlock.qml index 15664a3..f30d8da 100644 --- a/demos/declarative/samegame/content/FastBlock.qml +++ b/demos/declarative/samegame/content/FastBlock.qml @@ -15,8 +15,11 @@ Rect { id:block opacity: 0 y: targetY x: targetX - //y: Behavior { NumberAnimation { properties:"y"; duration: 200 } } - //opacity: Behavior { NumberAnimation { properties:"opacity"; duration: 200 } } + + MouseRegion { + id: gameMR; anchors.fill: parent + onClicked: handleClick(Math.floor(parent.x/width), Math.floor(parent.y/height)); + } states: [ |