Mailcommon
invitationwidgethandler.cpp
17} InvitationFunctions[] = {{SearchRule::FuncEquals, kli18n("has")}, {SearchRule::FuncNotEqual, kli18n("has not")}};
18static const int InvitationFunctionCount = sizeof(InvitationFunctions) / sizeof(*InvitationFunctions);
27QWidget *InvitationWidgetHandler::createFunctionWidget(int number, QStackedWidget *functionStack, const QObject *receiver, bool isBalooSearch) const
46QWidget *InvitationWidgetHandler::createValueWidget(int number, QStackedWidget *valueStack, const QObject *receiver) const
59SearchRule::Function InvitationWidgetHandler::function(const QByteArray &field, const QStackedWidget *functionStack) const
65 const auto combo = functionStack->findChild<QComboBox *>(QStringLiteral("invitationRuleFuncCombo"));
73QString InvitationWidgetHandler::value(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const
83QString InvitationWidgetHandler::prettyValue(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const
99void InvitationWidgetHandler::reset(QStackedWidget *functionStack, QStackedWidget *valueStack) const
101 const auto combo = functionStack->findChild<QComboBox *>(QStringLiteral("invitationRuleFuncCombo"));
111bool InvitationWidgetHandler::setRule(QStackedWidget *functionStack, QStackedWidget *valueStack, const SearchRule::Ptr rule, bool isBalooSearch) const
120 const auto combo = functionStack->findChild<QComboBox *>(QStringLiteral("invitationRuleFuncCombo"));
136bool InvitationWidgetHandler::update(const QByteArray &field, QStackedWidget *functionStack, QStackedWidget *valueStack) const
142 functionStack->setCurrentWidget(functionStack->findChild<QWidget *>(QStringLiteral("invitationRuleFuncCombo")));
143 valueStack->setCurrentWidget(valueStack->findChild<QWidget *>(QStringLiteral("invitationRuleValueLabel")));
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 Sat Dec 21 2024 17:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.