From 7dfb168f7fd2b9d32c4296e2aab15ef87a79f31a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 20 Jul 2017 19:25:59 +0300 Subject: 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 --- mobile-widgets/qml/MapWidget.qml | 1 + mobile-widgets/qml/MapWidgetContextMenu.qml | 1 + 2 files changed, 2 insertions(+) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 5310bb4d6..684d76a03 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -140,5 +140,6 @@ Item { MapWidgetContextMenu { id: contextMenu + y: 10; x: map.width - y } } diff --git a/mobile-widgets/qml/MapWidgetContextMenu.qml b/mobile-widgets/qml/MapWidgetContextMenu.qml index 47616de30..f2ab27f79 100644 --- a/mobile-widgets/qml/MapWidgetContextMenu.qml +++ b/mobile-widgets/qml/MapWidgetContextMenu.qml @@ -4,6 +4,7 @@ import QtQuick 2.7 Item { Image { id: contextMenuImage + x: -width source: "qrc:///mapwidget-context-menu" SequentialAnimation { -- cgit v1.2.3-70-g09d2