diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-10-26 19:59:04 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-11-23 16:19:52 +0000 |
commit | e77b6dc6ea801c720f241342246a57d237850e3f (patch) | |
tree | 259f7d9b55503d69006b4211b6fb12d757a1c636 /examples/location | |
parent | 7c022af015cbd281521674d20847b619e12e5aaf (diff) | |
download | qtlocation-e77b6dc6ea801c720f241342246a57d237850e3f.tar.gz |
Fix MapGestureArea API
Qmlfy map gesture area API:
* do not use "is" for properties (panActive,pinchActive)
* do not use "active" for accepted gestures (acceptedGestures)
* do not use "ZoomGestures" (PinchGesture)
* make private panEnabled, pinchEnabled
* remove pan/pinchEnabled signals
* update documentation
* fix order of emitting panFinished, flickFinished
[ChangeLog][MapGestureArea] Improve QML API including renaming and removal of
obsolete elements.
Change-Id: I643c923dcd94388475feb402b29ce3df916037a7
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples/location')
-rw-r--r-- | examples/location/mapviewer/map/MapComponent.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/location/mapviewer/map/MapComponent.qml b/examples/location/mapviewer/map/MapComponent.qml index ece4798b..d2d526d1 100644 --- a/examples/location/mapviewer/map/MapComponent.qml +++ b/examples/location/mapviewer/map/MapComponent.qml @@ -269,7 +269,7 @@ Map { //! [mapnavigation] // Enable pan, flick, and pinch gestures to zoom in and out - gesture.activeGestures: MapGestureArea.PanGesture | MapGestureArea.FlickGesture | MapGestureArea.ZoomGesture + gesture.acceptedGestures: MapGestureArea.PanGesture | MapGestureArea.FlickGesture | MapGestureArea.PinchGesture gesture.flickDeceleration: 3000 gesture.enabled: true //! [mapnavigation] |