mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mapwidgetcontextmenu: position the contextMenu on the map
The anchor of the menu itself will be positioned near the edge of the map widget, while the menu contents will have negative coordinates. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
de73cf1c90
commit
7dfb168f7f
2 changed files with 2 additions and 0 deletions
|
@ -140,5 +140,6 @@ Item {
|
|||
|
||||
MapWidgetContextMenu {
|
||||
id: contextMenu
|
||||
y: 10; x: map.width - y
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import QtQuick 2.7
|
|||
Item {
|
||||
Image {
|
||||
id: contextMenuImage
|
||||
x: -width
|
||||
source: "qrc:///mapwidget-context-menu"
|
||||
|
||||
SequentialAnimation {
|
||||
|
|
Loading…
Add table
Reference in a new issue