diff options
author | mae <qt-info@nokia.com> | 2009-08-13 14:25:14 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2009-08-13 14:25:35 (GMT) |
commit | afee70b2bd6b4eeaa85c24f148e51dcd985b6876 (patch) | |
tree | a583a3aea99579938493d99a776221b2eca2bdb1 /examples/declarative | |
parent | 3f33780398e4147f8ebb5130617d443e0ce1476f (diff) | |
download | Qt-afee70b2bd6b4eeaa85c24f148e51dcd985b6876.zip Qt-afee70b2bd6b4eeaa85c24f148e51dcd985b6876.tar.gz Qt-afee70b2bd6b4eeaa85c24f148e51dcd985b6876.tar.bz2 |
react on mouse press rather than click (feels faster)
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/minehunt/minehunt.qml | 4 |
1 files 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() } } } } |