MauiKit Controls
ToolActions.qml
12 * <a href="https://doc.qt.io/qt-6/qml-qtquick-controls-control.html">This control inherits from QQC2 Control, to checkout its inherited properties refer to the Qt Docs.</a>
16 * @image html Misc/toolactions.png "[1] Non-checkable. [2] Checkable non-auto-exclusive. [3] Checkable and autoexclusive"
19 * This control supports checkable and non-checkable actions. Also auto-exclusive and non-auto-exclusive actions.
21 * When enabling the `autoExclusive` property, then only one action in the group can be marked as checked at the time.
23 * There is also the option to collapse the actions into a single button with a popup menu where the actions are listed, this is useful when the available space changes and the control needs to be made more compact to save space.
27 * If only two actions are added and marked as auto-exclusive, then this control has the option to enable a `cyclic` behavior, which means that toggling one button will activate the next action in line and cyclic around.
90 * <a href="https://invent.kde.org/maui/mauikit/-/blob/qt6-2/examples/ToolActions.qml">You can find a more complete example at this link.</a>
108 * @brief The list of QQC2 Action to be listed. These can be declared a children elements of this control.
119 * @brief Whether the action button can be checked. If enabled, then the state will be styled accordingly.
136 * @brief Whether two action can be triggered in a cyclic manner. So one press will activate the next action and then cycle around again.
149 readonly property bool canCyclic : control.cyclic && control.count === 2 && control.autoExclusive
164 * @brief Whether the control should display all the actions as buttons in a row, or to collapse them into a popup menu.
259 color: (checked || down ? Maui.Theme.highlightColor : ( hovered ? Maui.Theme.hoverColor : Maui.Theme.backgroundColor))
382 icon.color: m_action ? (m_action.icon.color && m_action.icon.color.length ? m_action.icon.color : (pressed ? control.Maui.Theme.highlightColor : control.Maui.Theme.textColor)) : control.Maui.Theme.textColor
QString name(StandardAction id)
enabled
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.