diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-21 17:33:01 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 66b2f0c88cae13b295e0bd5f49374512e91fa628 (patch) | |
tree | c074d08424c4bb8bed98315c9f0918ddea79cc79 /mobile-widgets | |
parent | 3624d30354e50521559d5290de61d04375d35473 (diff) | |
download | subsurface-66b2f0c88cae13b295e0bd5f49374512e91fa628.tar.gz |
mapwidget.qml: call "copy to clipboard" actions in the maphelper C++
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index aa5edc5e6..d2a2924d2 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -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; } } |