org::kde::kirigami::MenuDialog
org::kde::kirigami::MenuDialog Class Reference
Inheritance diagram for org::kde::kirigami::MenuDialog:

Properties | |
list< QtObject > | actions |
Item | contentHeader |
alias | contentHeaderControl |
![]() | |
real | absoluteMaximumHeight |
real | absoluteMaximumWidth |
alias | dialogChildren |
alias | dialogData |
bool | flatFooterButtons |
Component | footerLeadingComponent |
Component | footerTrailingComponent |
list | Kirigami |
Item | mainItem |
real | maximumHeight |
real | maximumWidth |
real | preferredHeight |
real | preferredWidth |
bool | showCloseButton |
Additional Inherited Members | |
![]() | |
void | standardButton (button) |
Detailed Description
A dialog that prompts users with a context menu, with list items that perform actions.
Example usage:
Kirigami.MenuDialog {
title: i18n("Track Options")
actions: [
iconName: "media-playback-start"
tooltip: i18n("Start playback of the selected track")
},
enabled: false
iconName: "document-open-folder"
tooltip: i18n("Show the file for this song in the file manager")
},
iconName: "documentinfo"
tooltip: i18n("Show track metadata")
},
iconName: "list-add"
tooltip: i18n("Add the track to the queue, right after the current track")
},
iconName: "list-add"
tooltip: i18n("Enqueue current track")
}
]
}
- See also
- Dialog
- PromptDialog
Definition at line 54 of file MenuDialog.qml.
Property Documentation
◆ actions
|
read |
This property holds the actions displayed in the context menu.
Definition at line 59 of file MenuDialog.qml.
◆ contentHeader
|
read |
This property holds the content header, which appears above the actions.
but below the header bar.
Definition at line 64 of file MenuDialog.qml.
◆ contentHeaderControl
|
read |
This property holds the content header.
This makes it possible to access its internal properties to, for example, change its padding: contentHeaderControl.topPadding
Definition at line 73 of file MenuDialog.qml.
The documentation for this class was generated from the following file:
list< QtObject > actions
This property holds the actions displayed in the context menu.
Definition: MenuDialog.qml:59
QString i18n(const char *text, const TYPE &arg...)
list Kirigami
This property holds the custom actions displayed in the footer.
Definition: Dialog.qml:232
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:55:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:55:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.