libkdepim
kwidgetlister.cpp
Go to the documentation of this file.
94 KWidgetLister::KWidgetLister( bool fewerMoreButton, int minWidgets, int maxWidgets, QWidget *parent )
virtual QWidget * createWidget(QWidget *parent)
Returns a new widget that shall be added to the lister.
Definition: kwidgetlister.cpp:223
virtual void slotClear()
Called whenever the user clicks on the 'clear' button.
Definition: kwidgetlister.cpp:182
void clearWidgets()
This signal is emitted whenever the clear button is clicked.
Widget that manages a list of other widgets (incl.
Definition: kwidgetlister.h:63
int widgetsMinimum() const
The minimum number of widgets that are to stay on screen.
Definition: kwidgetlister.cpp:249
int widgetsMaximum() const
The maximum number of widgets that are to be shown on screen.
Definition: kwidgetlister.cpp:254
KWidgetLister(int minWidgets=1, int maxWidgets=8, QWidget *parent=0)
Creates a new widget lister.
Definition: kwidgetlister.cpp:102
virtual void addWidgetAtEnd(QWidget *widget=0)
Adds a single widget.
Definition: kwidgetlister.cpp:195
int count(const T &value) const
virtual void addWidgetAfterThisWidget(QWidget *currentWidget, QWidget *widget=0)
Add widget after specific widget.
Definition: kwidgetlister.cpp:277
void deleteLater()
void widgetRemoved()
This signal is emitted whenever a widget was removed.
virtual void slotMore()
Called whenever the user clicks on the 'more' button.
Definition: kwidgetlister.cpp:160
virtual void clearWidget(QWidget *w)
Called to clear a given widget.
Definition: kwidgetlister.cpp:218
virtual void setNumberOfShownWidgetsTo(int count)
Sets the number of widgets on scrren to exactly count.
Definition: kwidgetlister.cpp:228
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
void widgetAdded()
This signal is emitted whenever a widget was added.
void show()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void slotFewer()
Called whenever the user clicks on the 'fewer' button.
Definition: kwidgetlister.cpp:171
virtual void removeLastWidget()
Removes a single (always the last) widget.
Definition: kwidgetlister.cpp:209
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.