summaryrefslogtreecommitdiff
path: root/examples/location
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-01-29 19:59:07 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-01-30 11:45:42 +0000
commit7fc3265612963e8d4c58c2b3fd4d2d432b64483b (patch)
tree7e6b296bcfcbf650274c2c798798e086e17474b7 /examples/location
parent04ffcf20401f7d6aa18d57029259e49bd096d901 (diff)
downloadqtlocation-7fc3265612963e8d4c58c2b3fd4d2d432b64483b.tar.gz
Enable rotation and tilt gestures in the MapViewer example
This patch adds RotationGesture and TiltGesture to the acceptedGestures in the mapviewer example, previously limited only to pan, pinch and flick. Change-Id: I4c47cfb669abe5433e4b9b3fc4bb0a9d6c596fc3 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'examples/location')
-rw-r--r--examples/location/mapviewer/map/MapComponent.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/location/mapviewer/map/MapComponent.qml b/examples/location/mapviewer/map/MapComponent.qml
index 008a4a00..3525e5f1 100644
--- a/examples/location/mapviewer/map/MapComponent.qml
+++ b/examples/location/mapviewer/map/MapComponent.qml
@@ -39,7 +39,7 @@
****************************************************************************/
import QtQuick 2.5
import QtQuick.Controls 1.4
-import QtLocation 5.6
+import QtLocation 5.9
import QtPositioning 5.5
import "../helper.js" as Helper
@@ -269,7 +269,7 @@ Map {
//! [mapnavigation]
// Enable pan, flick, and pinch gestures to zoom in and out
- gesture.acceptedGestures: MapGestureArea.PanGesture | MapGestureArea.FlickGesture | MapGestureArea.PinchGesture
+ gesture.acceptedGestures: MapGestureArea.PanGesture | MapGestureArea.FlickGesture | MapGestureArea.PinchGesture | MapGestureArea.RotationGesture | MapGestureArea.TiltGesture
gesture.flickDeceleration: 3000
gesture.enabled: true
//! [mapnavigation]