summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-20 16:58:21 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commit70a8402911dfe0659cdaca7f83f00e42116fdbec (patch)
tree6b280c9561276301df35e4aa5438390acb0b91da
parentb7c4a7fbfc92ba359dfd39cf61ad56492b7b8004 (diff)
downloadsubsurface-70a8402911dfe0659cdaca7f83f00e42116fdbec.tar.gz
mapwidgetcontextmenu: add placeholder QML
This QML component will be used to provide a context menu for the QML map widget. Include the file in QRC and test it's creation in MapWidget.qml. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--mobile-widgets/qml/MapWidget.qml4
-rw-r--r--mobile-widgets/qml/MapWidgetContextMenu.qml9
-rw-r--r--subsurface.qrc1
3 files changed, 14 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index 345288d25..5310bb4d6 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -137,4 +137,8 @@ Item {
}
}
}
+
+ MapWidgetContextMenu {
+ id: contextMenu
+ }
}
diff --git a/mobile-widgets/qml/MapWidgetContextMenu.qml b/mobile-widgets/qml/MapWidgetContextMenu.qml
new file mode 100644
index 000000000..f26a700f7
--- /dev/null
+++ b/mobile-widgets/qml/MapWidgetContextMenu.qml
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+import QtQuick 2.7
+
+Item {
+ Rectangle {
+ width: 100; height: width
+ color: "white"
+ }
+}
diff --git a/subsurface.qrc b/subsurface.qrc
index f6ef2f417..00113696c 100644
--- a/subsurface.qrc
+++ b/subsurface.qrc
@@ -1,6 +1,7 @@
<RCC>
<qresource prefix="/">
<file alias="MapWidget.qml">mobile-widgets/qml/MapWidget.qml</file>
+ <file alias="MapWidgetContextMenu.qml">mobile-widgets/qml/MapWidgetContextMenu.qml</file>
<file alias="mapwidget-marker">mobile-widgets/qml/icons/mapwidget-marker.png</file>
<file alias="mapwidget-marker-selected">mobile-widgets/qml/icons/mapwidget-marker-selected.png</file>
<file alias="mapwidget-toggle-satellite">mobile-widgets/qml/icons/mapwidget-toggle-satellite.png</file>