summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/MapWidgetContextMenu.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidgetContextMenu.qml b/mobile-widgets/qml/MapWidgetContextMenu.qml
index f2ab27f79..1c384d7d4 100644
--- a/mobile-widgets/qml/MapWidgetContextMenu.qml
+++ b/mobile-widgets/qml/MapWidgetContextMenu.qml
@@ -24,4 +24,25 @@ Item {
}
}
}
+
+ readonly property var menuItemIndex: {
+ "OPEN_LOCATION_IN_GOOGLE_MAPS": 0,
+ "COPY_LOCATION_DECIMAL": 1,
+ "COPY_LOCATION_SEXAGESIMAL": 2
+ }
+
+ readonly property var menuItemData: [
+ { idx: menuItemIndex.OPEN_LOCATION_IN_GOOGLE_MAPS, itemText: qsTr("Open location in Google Maps") },
+ { idx: menuItemIndex.COPY_LOCATION_DECIMAL, itemText: qsTr("Copy location to clipboard (decimal)") },
+ { idx: menuItemIndex.COPY_LOCATION_SEXAGESIMAL, itemText: qsTr("Copy location to clipboard (sexagesimal)") }
+ ]
+
+ ListModel {
+ id: listModel
+ property int selectedIdx: -1
+ Component.onCompleted: {
+ for (var i = 0; i < menuItemData.length; i++)
+ append(menuItemData[i]);
+ }
+ }
}