mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b7c4a7fbfc
commit
70a8402911
3 changed files with 14 additions and 0 deletions
|
@ -137,4 +137,8 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MapWidgetContextMenu {
|
||||||
|
id: contextMenu
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
9
mobile-widgets/qml/MapWidgetContextMenu.qml
Normal file
9
mobile-widgets/qml/MapWidgetContextMenu.qml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
|
import QtQuick 2.7
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Rectangle {
|
||||||
|
width: 100; height: width
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file alias="MapWidget.qml">mobile-widgets/qml/MapWidget.qml</file>
|
<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">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-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>
|
<file alias="mapwidget-toggle-satellite">mobile-widgets/qml/icons/mapwidget-toggle-satellite.png</file>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue