MenuDialog
MenuDialog Class Reference
Properties | |
listTAction | actions |
alias | contentHeader |
alias | contentHeaderControl |
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: [
Kirigami.Action {
icon.name: "media-playback-start"
tooltip: i18n("Start playback of the selected track")
},
Kirigami.Action {
enabled: false
icon.name: "document-open-folder"
tooltip: i18n("Show the file for this song in the file manager")
},
Kirigami.Action {
icon.name: "documentinfo"
tooltip: i18n("Show track metadata")
},
Kirigami.Action {
icon.name: "list-add"
tooltip: i18n("Add the track to the queue, right after the current track")
},
Kirigami.Action {
icon.name: "list-add"
tooltip: i18n("Enqueue current track")
}
]
}
listTAction actions
This property holds the actions displayed in the context menu.
Definition MenuDialog.qml:60
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
- See also
- Dialog
- PromptDialog
Definition at line 55 of file MenuDialog.qml.
Property Documentation
◆ actions
|
read |
This property holds the actions displayed in the context menu.
Definition at line 60 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 65 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 74 of file MenuDialog.qml.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.