25 lines
511 B
QML
25 lines
511 B
QML
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
import QtQuick 2.12
|
|
import QtQuick.Controls 2.12
|
|
|
|
HMenuItem {
|
|
property var popup // url or HPopup Component
|
|
property bool autoDestruct: true
|
|
property var properties: ({})
|
|
|
|
|
|
onTriggered: {
|
|
menu.focusOnClosed = null
|
|
|
|
utils.makePopup(
|
|
popup,
|
|
utils.objectUpdate(
|
|
{ focusOnClosed: menu.previouslyFocused }, properties,
|
|
),
|
|
null,
|
|
autoDestruct,
|
|
)
|
|
}
|
|
}
|