summaryrefslogtreecommitdiff
path: root/examples/location/planespotter/planespotter.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/location/planespotter/planespotter.qml')
-rw-r--r--examples/location/planespotter/planespotter.qml10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/location/planespotter/planespotter.qml b/examples/location/planespotter/planespotter.qml
index 89384d5d..3cb3085b 100644
--- a/examples/location/planespotter/planespotter.qml
+++ b/examples/location/planespotter/planespotter.qml
@@ -64,9 +64,8 @@ Window {
}
//! [QmlPlane2]
- MouseArea {
- anchors.fill: parent
- onClicked: {
+ TapHandler {
+ onTapped: {
if (qmlPlaneAnimation.running) {
console.log("Plane still in the air.");
return;
@@ -96,9 +95,8 @@ Window {
pilotName: "C++"
coordinate: berlin2London.position
- MouseArea {
- anchors.fill: parent
- onClicked: {
+ TapHandler {
+ onTapped: {
if (cppPlaneAnimation.running || berlin2London.isFlying()) {
console.log("Plane still in the air.");
return;