Kirigami2
toolbarlayout.h
67 Q_PROPERTY(QQmlComponent *fullDelegate READ fullDelegate WRITE setFullDelegate NOTIFY fullDelegateChanged)
73 Q_PROPERTY(QQmlComponent *iconDelegate READ iconDelegate WRITE setIconDelegate NOTIFY iconDelegateChanged)
81 Q_PROPERTY(QQmlComponent *moreButton READ moreButton WRITE setMoreButton NOTIFY moreButtonChanged)
118 Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection NOTIFY layoutDirectionChanged)
139 AlwaysCenter, ///< Always center items, allowing them to go outside the bounds of the layout if they are larger.
140 AlwaysFill, ///< Always match the height of the layout. Larger items will be reduced in height, smaller items will be increased.
141 ConstrainIfLarger, ///< If the item is larger than the toolbar, reduce its height. Otherwise center it in the toolbar.
223 void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data) override;
Q_OBJECTQ_OBJECT
typedef Alignment
Q_PROPERTY(...)
Q_ENUM(...)
QQmlComponent iconDelegate
A component that is used to create icon-only delegates from.
Definition: toolbarlayout.h:73
Q_SIGNALQ_SIGNAL
QQmlComponent fullDelegate
A component that is used to create full-size delegates from.
Definition: toolbarlayout.h:67
HeightMode heightMode
How to handle items that do not match the toolbar's height.
Definition: toolbarlayout.h:129
ItemChange
QList< QObject * > hiddenActions
A list of actions that do not fit in the current view and are thus hidden.
Definition: toolbarlayout.h:56
parent
QQmlComponent moreButton
A component that is used to create the "more button" item from.
Definition: toolbarlayout.h:81
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
@ AlwaysFill
Always match the height of the layout. Larger items will be reduced in height, smaller items will be ...
Definition: toolbarlayout.h:140
Q_SLOTQ_SLOT
QQmlListProperty< QObject > actions
The actions this layout should create delegates for.
Definition: toolbarlayout.h:52
An item that creates delegates for actions and lays them out in a row.
Definition: toolbarlayout.h:46
qreal visibleWidth
The combined width of visible delegates in this layout.
Definition: toolbarlayout.h:98
LayoutDirection
void addAction(QObject *action)
Add an action to the list of actions.
Definition: toolbarlayout.cpp:120
void removeAction(QObject *action)
Remove an action from the list of actions.
Definition: toolbarlayout.cpp:140
HeightMode
An enum describing several modes that can be used to deal with items with a height that does not matc...
Definition: toolbarlayout.h:138
@ ConstrainIfLarger
If the item is larger than the toolbar, reduce its height. Otherwise center it in the toolbar.
Definition: toolbarlayout.h:141
QObject * parent() const const
@ AlwaysCenter
Always center items, allowing them to go outside the bounds of the layout if they are larger.
Definition: toolbarlayout.h:139
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.