org::kde::kirigami::MenuDialog

Search for usage in LXR

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

Properties

list< QtObject > actions
 
Item contentHeader
 
alias contentHeaderControl
 
- Properties inherited from org::kde::kirigami::Dialog
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

- Public Member Functions inherited from org::kde::kirigami::Dialog
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")
iconName: "media-playback-start"
text: i18nc("Start playback of the selected track", "Play")
tooltip: i18n("Start playback of the selected track")
},
enabled: false
iconName: "document-open-folder"
text: i18nc("Show the file for this song in the file manager", "Show in folder")
tooltip: i18n("Show the file for this song in the file manager")
},
iconName: "documentinfo"
text: i18nc("Show track metadata", "View details")
tooltip: i18n("Show track metadata")
},
iconName: "list-add"
text: i18nc("Add the track to the queue, right after the current track", "Play next")
tooltip: i18n("Add the track to the queue, right after the current track")
},
iconName: "list-add"
text: i18nc("Enqueue current track", "Add to queue")
tooltip: i18n("Enqueue current track")
}
]
}
See also
Dialog
PromptDialog

Definition at line 54 of file MenuDialog.qml.

Property Documentation

◆ actions

list<QtObject> org::kde::kirigami::MenuDialog::actions
read

This property holds the actions displayed in the context menu.

Definition at line 59 of file MenuDialog.qml.

◆ contentHeader

Item org::kde::kirigami::MenuDialog::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

QtQuick Controls Control org::kde::kirigami::MenuDialog::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:230
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 03:57:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.