summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/declarative/minehunt/minehunt.qml4
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() }
}
}
}