MenuItemActionRow
MenuItemActionRow Class Reference
Inheritance diagram for MenuItemActionRow:
Properties | |
list< Action > | actions |
Additional Inherited Members | |
Public Member Functions inherited from QtQuick.Controls.MenuItem | |
void | triggered () |
Detailed Description
A menu item entry for placing a set of actions as the children.
The actions will be represented as row of QQC2 ToolButton.
This is mean tot be used inside a Menu, where a group of similar actions can be placed together to save vertical sspace and make the UI a bit less cluttered.
Maui.ContextualMenu
{
id: _contextualMenu
title: "Menu Title"
titleIconSource: "folder"
Maui.MenuItemActionRow
{
{
text: "Action1"
icon.name: "love"
}
{
text: "Action2"
icon.name: "folder"
}
{
text: "Action3"
icon.name: "anchor"
}
}
MenuSeparator {}
MenuItem
{
text: "Action3"
icon.name: "actor"
}
MenuItem
{
text: "Action4"
icon.name: "anchor"
}
}
- Attention
- When an action here defined has been triggered, then the
triggered
signal fo the actual container -aka MenuItem - will also be emitted. This is done to support the auto-closing of the menu after a menu entry has been triggered.
Definition at line 67 of file MenuItemActionRow.qml.
Property Documentation
◆ actions
|
read |
The list of actions to be represented.
The children of this element should be a group of QQC2 Action.
- Remarks
- This is the default property
Definition at line 75 of file MenuItemActionRow.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 Fri Dec 6 2024 12:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.