4pragma ComponentBehavior: Bound
7import QtQuick.Controls as QQC2
8import QtQuick.Controls as T
10import Qt.labs.qmlmodels
12import org.kde.kirigami as Kirigami
13import org.kde.kirigamiaddons.components as KirigamiComponents
14import org.kde.kirigamiaddons.formcard as FormCard
16import './private' as P
60 default property list<T.Action> actions
67 property Item headerContentItem
71 function popup(position = null): void {
73 const item = mobileMenu.createObject(root);
76 const item = desktopMenu.createObject(root);
90 submenuComponent: P.ActionsMenu { }
101 KirigamiComponents.BottomDrawer {
104 parent: root.QQC2.Overlay.overlay
110 headerContentItem: ColumnLayout {
111 children:
if (stackViewMenu.depth > 1 || root.headerContentItem === null) {
114 return root.headerContentItem;
118 property Item nestedHeader: RowLayout {
119 Layout.fillWidth:
true
120 spacing:
Kirigami.Units.smallSpacing
122 enabled: stackViewMenu.currentItem?.title.length > 0
125 icon.name:
'draw-arrow-back-symbolic'
126 text:
i18ndc(
"kirigami-addons6",
"@action:button",
"Go Back")
127 display: QQC2.ToolButton.IconOnly
128 onClicked: stackViewMenu.pop();
130 QQC2.ToolTip.visible: hovered
132 QQC2.ToolTip.text: text
137 text: stackViewMenu.currentItem?.title
138 elide:
Text.ElideRight
139 Layout.fillWidth:
true
146 implicitHeight: currentItem?.implicitHeight
147 implicitWidth: currentItem?.implicitWidth
149 initialItem: P.ContextMenuPage {
150 stackView: stackViewMenu
151 actions: root.actions
QString i18ndc(const char *domain, const char *context, const char *text, const TYPE &arg...)
QStringView level(QStringView ifopt)