Kirigami2
toolbarlayout.h
71 Q_PROPERTY(QQmlComponent *fullDelegate READ fullDelegate WRITE setFullDelegate NOTIFY fullDelegateChanged FINAL)
77 Q_PROPERTY(QQmlComponent *iconDelegate READ iconDelegate WRITE setIconDelegate NOTIFY iconDelegateChanged FINAL)
85 Q_PROPERTY(QQmlComponent *separatorDelegate READ separatorDelegate WRITE setSeparatorDelegate NOTIFY separatorDelegateChanged FINAL)
93 Q_PROPERTY(QQmlComponent *moreButton READ moreButton WRITE setMoreButton NOTIFY moreButtonChanged FINAL)
106 Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged FINAL)
130 Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection NOTIFY layoutDirectionChanged FINAL)
141 Q_PROPERTY(HeightMode heightMode READ heightMode WRITE setHeightMode NOTIFY heightModeChanged FINAL)
151 AlwaysCenter, ///< Always center items, allowing them to go outside the bounds of the layout if they are larger.
152 AlwaysFill, ///< Always match the height of the layout. Larger items will be reduced in height, smaller items will be increased.
153 ConstrainIfLarger, ///< If the item is larger than the toolbar, reduce its height. Otherwise center it in the toolbar.
235 void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data) override;
An item that creates delegates for actions and lays them out in a row.
Definition toolbarlayout.h:49
QQmlComponent * iconDelegate
A component that is used to create icon-only delegates from.
Definition toolbarlayout.h:77
QQmlComponent * moreButton
A component that is used to create the "more button" item from.
Definition toolbarlayout.h:93
void removeAction(QObject *action)
Remove an action from the list of actions.
Definition toolbarlayout.cpp:153
HeightMode heightMode
How to handle items that do not match the toolbar's height.
Definition toolbarlayout.h:141
qreal visibleWidth
The combined width of visible delegates in this layout.
Definition toolbarlayout.h:110
QML_ELEMENTQQmlListProperty< QObject > actions
The actions this layout should create delegates for.
Definition toolbarlayout.h:56
QQmlComponent * fullDelegate
A component that is used to create full-size delegates from.
Definition toolbarlayout.h:71
void addAction(QObject *action)
Add an action to the list of actions.
Definition toolbarlayout.cpp:130
QQmlComponent * separatorDelegate
A component that is used to create separator delegates from.
Definition toolbarlayout.h:85
HeightMode
An enum describing several modes that can be used to deal with items with a height that does not matc...
Definition toolbarlayout.h:150
@ AlwaysFill
Always match the height of the layout. Larger items will be reduced in height, smaller items will be ...
Definition toolbarlayout.h:152
@ ConstrainIfLarger
If the item is larger than the toolbar, reduce its height. Otherwise center it in the toolbar.
Definition toolbarlayout.h:153
@ AlwaysCenter
Always center items, allowing them to go outside the bounds of the layout if they are larger.
Definition toolbarlayout.h:151
QList< QObject * > hiddenActions
A list of actions that do not fit in the current view and are thus hidden.
Definition toolbarlayout.h:60
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALQ_SIGNAL
Q_SLOTQ_SLOT
QObject * parent() const const
ItemChange
parent
typedef Alignment
LayoutDirection
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.