From afee70b2bd6b4eeaa85c24f148e51dcd985b6876 Mon Sep 17 00:00:00 2001 From: mae Date: Thu, 13 Aug 2009 16:25:14 +0200 Subject: react on mouse press rather than click (feels faster) --- examples/declarative/minehunt/minehunt.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/declarative/minehunt/minehunt.qml b/examples/declarative/minehunt/minehunt.qml index c57dbf2..55cf3c2 100644 --- a/examples/declarative/minehunt/minehunt.qml +++ b/examples/declarative/minehunt/minehunt.qml @@ -103,7 +103,7 @@ Item { ] MouseRegion { anchors.fill: parent - onClicked: { + onPressed: { field.clickx = flipable.parent.x; field.clicky = flipable.parent.y; row = Math.floor(index/9); @@ -180,7 +180,7 @@ Item { source: isPlaying ? 'pics/face-smile.png' : hasWon ? 'pics/face-smile-big.png': 'pics/face-sad.png' MouseRegion { anchors.fill: parent - onClicked: { reset() } + onPressed: { reset() } } } } -- cgit v0.12