mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
Add gesture support to maps
This commit is contained in:
parent
1a7c995e43
commit
e023611bf2
@ -52,6 +52,8 @@ Item {
|
||||
anchors.fill: parent
|
||||
center: QtPositioning.coordinate(51.5, 0.125) // London
|
||||
zoomLevel: 10
|
||||
gesture.enabled: true
|
||||
gesture.acceptedGestures: MapGestureArea.PinchGesture | MapGestureArea.PanGesture
|
||||
|
||||
// Needs to come first, otherwise MouseAreas in the MapItemViews don't get clicked event first
|
||||
// Setting z doesn't seem to work
|
||||
|
@ -64,6 +64,8 @@ Item {
|
||||
anchors.fill: parent
|
||||
center: QtPositioning.coordinate(51.5, 0.125) // London
|
||||
zoomLevel: 10
|
||||
gesture.enabled: true
|
||||
gesture.acceptedGestures: MapGestureArea.PinchGesture | MapGestureArea.PanGesture
|
||||
|
||||
// Tracks first, so drawn under other items
|
||||
MapItemView {
|
||||
|
@ -49,6 +49,8 @@ Item {
|
||||
plugin: mapPlugin
|
||||
center: QtPositioning.coordinate(51.5, 0.125) // London
|
||||
zoomLevel: 10
|
||||
gesture.enabled: true
|
||||
gesture.acceptedGestures: MapGestureArea.PinchGesture | MapGestureArea.PanGesture
|
||||
|
||||
MapItemView {
|
||||
model: vorModel
|
||||
|
Loading…
Reference in New Issue
Block a user