diff options
Diffstat (limited to 'examples/location')
-rw-r--r-- | examples/location/planespotter/doc/src/planespotter.qdoc | 2 | ||||
-rw-r--r-- | examples/location/planespotter/planespotter.qml | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/examples/location/planespotter/doc/src/planespotter.qdoc b/examples/location/planespotter/doc/src/planespotter.qdoc index bed5f597..394ad1d0 100644 --- a/examples/location/planespotter/doc/src/planespotter.qdoc +++ b/examples/location/planespotter/doc/src/planespotter.qdoc @@ -111,7 +111,7 @@ \snippet planespotter/planespotter.qml QmlPlane1 - The \l MouseArea of the QML plane implements the logic for the course setting + The \l TapHandler of the QML plane implements the logic for the course setting and starts the animation when required. \snippet planespotter/planespotter.qml QmlPlane2 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; |