Mailcommon
attachmentwidgethandler.cpp
17} AttachmentFunctions[] = {{SearchRule::FuncEquals, kli18n("has")}, {SearchRule::FuncNotEqual, kli18n("has not")}};
18static const int AttachmentFunctionCount = sizeof(AttachmentFunctions) / sizeof(*AttachmentFunctions);
27QWidget *AttachmentWidgetHandler::createFunctionWidget(int number, QStackedWidget *functionStack, const QObject *receiver, bool isBalooSearch) const
46QWidget *AttachmentWidgetHandler::createValueWidget(int number, QStackedWidget *valueStack, const QObject *receiver) const
59SearchRule::Function AttachmentWidgetHandler::function(const QByteArray &field, const QStackedWidget *functionStack) const
65 const auto combo = functionStack->findChild<QComboBox *>(QStringLiteral("attachmentRuleFuncCombo"));
73QString AttachmentWidgetHandler::value(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const
83QString AttachmentWidgetHandler::prettyValue(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const
99void AttachmentWidgetHandler::reset(QStackedWidget *functionStack, QStackedWidget *valueStack) const
101 const auto combo = functionStack->findChild<QComboBox *>(QStringLiteral("attachmentRuleFuncCombo"));
111bool AttachmentWidgetHandler::setRule(QStackedWidget *functionStack, QStackedWidget *valueStack, const SearchRule::Ptr rule, bool isBalooSearch) const
120 const auto combo = functionStack->findChild<QComboBox *>(QStringLiteral("attachmentRuleFuncCombo"));
136bool AttachmentWidgetHandler::update(const QByteArray &field, QStackedWidget *functionStack, QStackedWidget *valueStack) const
142 functionStack->setCurrentWidget(functionStack->findChild<QWidget *>(QStringLiteral("attachmentRuleFuncCombo")));
143 valueStack->setCurrentWidget(valueStack->findChild<QWidget *>(QStringLiteral("attachmentRuleValueLabel")));
QString toString() const
An interface to filter/search rule widget handlers.
Definition rulewidgethandler.h:25
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T findChild(const QString &name, Qt::FindChildOptions options) const const
void setCurrentWidget(QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.