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:
Lubomir I. Ivanov 2017-07-20 19:25:59 +03:00 committed by Dirk Hohndel
parent de73cf1c90
commit 7dfb168f7f
2 changed files with 2 additions and 0 deletions

View file

@ -140,5 +140,6 @@ Item {
MapWidgetContextMenu {
id: contextMenu
y: 10; x: map.width - y
}
}

View file

@ -4,6 +4,7 @@ import QtQuick 2.7
Item {
Image {
id: contextMenuImage
x: -width
source: "qrc:///mapwidget-context-menu"
SequentialAnimation {