MenuDialog

Search for usage in LXR

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")
Kirigami.Action {
icon.name: "media-playback-start"
text: i18nc("Start playback of the selected track", "Play")
tooltip: i18n("Start playback of the selected track")
},
Kirigami.Action {
enabled: false
icon.name: "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")
},
Kirigami.Action {
icon.name: "documentinfo"
text: i18nc("Show track metadata", "View details")
tooltip: i18n("Show track metadata")
},
Kirigami.Action {
icon.name: "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")
},
Kirigami.Action {
icon.name: "list-add"
text: i18nc("Enqueue current track", "Add to queue")
tooltip: i18n("Enqueue current track")
}
]
}
listTAction actions
This property holds the actions displayed in the context menu.
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

listTAction MenuDialog::actions
read

This property holds the actions displayed in the context menu.

Definition at line 60 of file MenuDialog.qml.

◆ contentHeader

alias MenuDialog::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

alias 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 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

KDE's Doxygen guidelines are available online.