From 66b2f0c88cae13b295e0bd5f49374512e91fa628 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 21 Jul 2017 17:33:01 +0300 Subject: [PATCH] mapwidget.qml: call "copy to clipboard" actions in the maphelper C++ Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qml/MapWidget.qml | 5 ++--- 1 file 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; } }