Libkdepim
kwidgetlister.h
52 explicit KWidgetLister(bool fewerMoreButton, int minWidgets = 1, int maxWidgets = 8, QWidget *parent = nullptr);
virtual void slotMore()
Called whenever the user clicks on the 'more' button.
Definition kwidgetlister.cpp:122
void widgetAdded(QWidget *widget)
This signal is emitted whenever a widget was added.
void widgetAdded()
This signal is emitted whenever a widget was added.
virtual void removeLastWidget()
Removes a single (always the last) widget.
Definition kwidgetlister.cpp:173
void widgetRemoved()
This signal is emitted whenever a widget was removed.
void widgetRemoved(QWidget *widget)
This signal is emitted whenever a widget was removed.
virtual void addWidgetAfterThisWidget(QWidget *currentWidget, QWidget *widget=nullptr)
Add widget after specific widget.
Definition kwidgetlister.cpp:241
virtual void slotClear()
Called whenever the user clicks on the 'clear' button.
Definition kwidgetlister.cpp:144
int widgetsMaximum() const
The maximum number of widgets that are to be shown on screen.
Definition kwidgetlister.cpp:218
virtual QWidget * createWidget(QWidget *parent)
Returns a new widget that shall be added to the lister.
Definition kwidgetlister.cpp:187
virtual void addWidgetAtEnd(QWidget *widget=nullptr)
Adds a single widget.
Definition kwidgetlister.cpp:158
virtual void setNumberOfShownWidgetsTo(int count)
Sets the number of widgets on screen to exactly count.
Definition kwidgetlister.cpp:192
KWidgetLister(bool fewerMoreButton, int minWidgets=1, int maxWidgets=8, QWidget *parent=nullptr)
Creates a new widget lister.
Definition kwidgetlister.cpp:65
int widgetsMinimum() const
The minimum number of widgets that are to stay on screen.
Definition kwidgetlister.cpp:213
virtual void slotFewer()
Called whenever the user clicks on the 'fewer' button.
Definition kwidgetlister.cpp:133
void clearWidgets()
This signal is emitted whenever the clear button is clicked.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:43 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:43 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.