mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
mapwidget.qml: call "copy to clipboard" actions in the maphelper C++
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
3624d30354
commit
66b2f0c88c
1 changed files with 2 additions and 3 deletions
|
@ -148,16 +148,15 @@ Item {
|
|||
id: contextMenu
|
||||
y: 10; x: map.width - y
|
||||
onActionSelected: {
|
||||
// TODO: perform action actions
|
||||
switch (action) {
|
||||
case contextMenu.actions.OPEN_LOCATION_IN_GOOGLE_MAPS:
|
||||
openLocationInGoogleMaps(map.center.latitude, map.center.longitude)
|
||||
break;
|
||||
case contextMenu.actions.COPY_LOCATION_DECIMAL:
|
||||
console.log("COPY_LOCATION_DECIMAL");
|
||||
mapHelper.copyToClipboardCoordinates(map.center, false);
|
||||
break;
|
||||
case contextMenu.actions.COPY_LOCATION_SEXAGESIMAL:
|
||||
console.log("COPY_LOCATION_SEXAGESIMAL");
|
||||
mapHelper.copyToClipboardCoordinates(map.center, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue