Akonadi Contacts
emailaddressselectionwidget.cpp
88 EmailAddressSelectionWidgetPrivate(bool showOnlyContactWithEmail, EmailAddressSelectionWidget *qq, QAbstractItemModel *model)
146 filter->setMatchFilterContactFlag(ContactsFilterProxyModel::MatchFilterContactFlag::OnlyNameAndEmailsAddresses);
156 q->connect(mSearchLine, &QLineEdit::textChanged, filter, &ContactsFilterProxyModel::setFilterString);
158 q->connect(mView, qOverload<const Akonadi::Item &>(&Akonadi::EntityTreeView::doubleClicked), q, [this]() {
166 QObject::connect(etm, &Akonadi::EntityTreeModel::collectionTreeFetched, mView, &QTreeView::expandAll);
178 EmailAddressSelectionWidget::EmailAddressSelectionWidget(QAbstractItemModel *model, QWidget *parent)
184 EmailAddressSelectionWidget::EmailAddressSelectionWidget(bool showOnlyContactWithEmail, QAbstractItemModel *model, QWidget *parent)
static void widgetNeedsAkonadi(QWidget *widget)
QTreeView * view() const
Returns the tree view that is used to list the items.
Definition: emailaddressselectionwidget.cpp:224
KeyPress
singleShot
An selection of an email address and corresponding name.
Definition: emailaddressselection.h:36
NoEditTriggers
virtual void keyPressEvent(QKeyEvent *event) override
NoButton
NoDragDrop
void collectionTreeFetched(const Akonadi::Collection::List &collections)
A widget to select email addresses from Akonadi.
Definition: emailaddressselectionwidget.h:56
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void hide()
void setFilterString(const QString &filter)
Sets the filter that is used to filter for matching contacts and contact groups.
Definition: contactsfilterproxymodel.cpp:73
void expandAll()
virtual bool eventFilter(QObject *watched, QEvent *event)
A proxy model for ContactsTreeModel models.
Definition: contactsfilterproxymodel.h:50
QString i18n(const char *text, const TYPE &arg...)
void textChanged(const QString &text)
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
void init(KXmlGuiWindow *window, KgDifficulty *difficulty=nullptr)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Key_Down
QString label(StandardShortcut id)
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
EmailAddressSelectionWidget(QWidget *parent=nullptr)
Creates a new email address selection widget.
Definition: emailaddressselectionwidget.cpp:172
void setContentsMargins(int left, int top, int right, int bottom)
QLineEdit * searchLineEdit() const
Returns the line edit that is used for the search line.
Definition: emailaddressselectionwidget.cpp:219
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void doubleClicked(const Akonadi::Collection &collection)
void setEditTriggers(QAbstractItemView::EditTriggers triggers)
KeypadModifier
~EmailAddressSelectionWidget() override
Destroys the email address selection widget.
EmailAddressSelection::List selectedAddresses() const
Returns the list of selected email addresses.
Definition: emailaddressselectionwidget.cpp:192
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.