Libkdepim
kwidgetlister.cpp
65KWidgetLister::KWidgetLister(bool fewerMoreButton, int minWidgets, int maxWidgets, QWidget *parent)
92 KGuiItem::assign(d->mBtnMore, KGuiItem(i18nc("more widgets", "More"), QStringLiteral("list-add")));
97 KGuiItem::assign(d->mBtnFewer, KGuiItem(i18nc("fewer widgets", "Fewer"), QStringLiteral("list-remove")));
static void assign(QPushButton *button, const KGuiItem &item)
virtual void slotMore()
Called whenever the user clicks on the 'more' button.
Definition kwidgetlister.cpp:122
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.
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.
QString i18nc(const char *context, const char *text, const TYPE &arg...)
KGuiItem clear()
void clicked(bool checked)
qsizetype count() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
QObject * parent() const const
AlignTop
QWidget(QWidget *parent, Qt::WindowFlags f)
void setEnabled(bool)
void show()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:03:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:03:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.