Mailcommon
filteractionwidget.cpp
87 setFilterAction(index < mActionList.count() ? mActionList.at(index)->createParamWidget(q) : nullptr);
132 connect(action, &FilterAction::filterActionModified, this, &FilterActionWidget::filterModified);
219 FilterActionDesc *description = MailCommon::FilterManager::filterActionDict()->value(d->mComboBox->itemData(d->mComboBox->currentIndex()).toString());
254void FilterActionWidgetLister::FilterActionWidgetListerPrivate::regenerateActionListFromWidgets()
304 qCDebug(MAILCOMMON_LOG) << "FilterActionWidgetLister: Clipping action list to" << widgetsMaximum() << "items!";
319 for (QList<FilterAction *>::const_iterator aIt = d->mActionList->constBegin(); (aIt != aEnd && wIt != wEnd); ++aIt, ++wIt) {
332 connect(w, &FilterActionWidget::filterModified, this, &FilterActionWidgetLister::filterModified, Qt::UniqueConnection);
391 connect(w, &FilterActionWidget::addFilterWidget, this, &FilterActionWidgetLister::slotAddWidget, Qt::UniqueConnection);
393 connect(w, &FilterActionWidget::removeFilterWidget, this, &FilterActionWidgetLister::slotRemoveWidget, Qt::UniqueConnection);
virtual void addWidgetAfterThisWidget(QWidget *currentWidget, QWidget *widget=nullptr)
virtual void slotClear()
virtual void removeWidget(QWidget *widget)
int widgetsMaximum() const
virtual void setNumberOfShownWidgetsTo(int count)
QList< QWidget * > widgets() const
KWidgetLister(bool fewerMoreButton, int minWidgets=1, int maxWidgets=8, QWidget *parent=nullptr)
int widgetsMinimum() const
MAILCOMMON_EXPORT const QList< FilterActionDesc * > & list() const
Provides read-only access to a list of all known filter actions.
Definition filteractiondict.cpp:95
A container widget for a list of FilterActionWidgets.
Definition filteractionwidget.h:98
void setActionList(QList< FilterAction * > *list)
Sets the list of filter actions, the lister will create FilterActionWidgets for.
Definition filteractionwidget.cpp:280
void updateActionList()
Updates the action list according to the current action widget values.
Definition filteractionwidget.cpp:372
QWidget * createWidget(QWidget *) override
Definition filteractionwidget.cpp:396
void clearWidget(QWidget *) override
Definition filteractionwidget.cpp:403
~FilterActionWidgetLister() override
Destroys the filter action widget lister.
FilterActionWidgetLister(QWidget *parent=nullptr)
Creates a new filter action widget lister.
Definition filteractionwidget.cpp:272
A widget to edit a single MailCommon::FilterAction.
Definition filteractionwidget.h:41
~FilterActionWidget() override
Destroys the filter action widget.
void setAction(const MailCommon::FilterAction *action)
Sets the filter action.
Definition filteractionwidget.cpp:181
FilterActionWidget(QWidget *parent=nullptr)
Creates a filter action widget with no type selected.
Definition filteractionwidget.cpp:90
MailCommon::FilterAction * action() const
Returns the filter action.
Definition filteractionwidget.cpp:215
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition filteraction.cpp:67
void filterActionModified()
Called to notify that the current FilterAction has had some value modification.
virtual void setParamWidgetValue(QWidget *paramWidget) const
The filter action shall set it's widget's contents from it's parameter.
Definition filteraction.cpp:71
static FilterActionDict * filterActionDict()
Returns the global filter action dictionary.
Definition filtermanager.cpp:96
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void clicked(bool checked)
void activated(int index)
void addWidget(QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment)
QLayoutItem * itemAtPosition(int row, int column) const const
QIcon fromTheme(const QString &name)
virtual QWidget * widget() const const
ConstIterator
void append(QList< T > &&value)
void clear()
const_iterator constBegin() const const
const_iterator constEnd() const const
qsizetype count() const const
bool isEmpty() const const
T value(const Key &key) const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
T qobject_cast(QObject *object)
Fixed
UniqueConnection
QWidget(QWidget *parent, Qt::WindowFlags f)
void setEnabled(bool)
void setFocusProxy(QWidget *w)
void setSizePolicy(QSizePolicy)
void updateGeometry()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.