diff options
Diffstat (limited to 'examples/location/mapviewer/MapViewer/menus/ItemPopupMenu.qml')
-rw-r--r-- | examples/location/mapviewer/MapViewer/menus/ItemPopupMenu.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/location/mapviewer/MapViewer/menus/ItemPopupMenu.qml b/examples/location/mapviewer/MapViewer/menus/ItemPopupMenu.qml new file mode 100644 index 000000000..d559aca6c --- /dev/null +++ b/examples/location/mapviewer/MapViewer/menus/ItemPopupMenu.qml @@ -0,0 +1,19 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick +import QtQuick.Controls + +Menu { + property variant type + signal itemClicked(string item) + + MenuItem { + text: qsTr("Info") + onTriggered: itemClicked("show" + type + "Info") + } + MenuItem { + text: qsTr("Delete") + onTriggered: itemClicked("delete" + type) + } +} |