Akonadi Contacts
emailaddressselectionwidget.cpp
86 EmailAddressSelectionWidgetPrivate(bool showOnlyContactWithEmail, EmailAddressSelectionWidget *qq, QAbstractItemModel *model)
144 filter->setMatchFilterContactFlag(ContactsFilterProxyModel::MatchFilterContactFlag::OnlyNameAndEmailsAddresses);
154 q->connect(mSearchLine, &QLineEdit::textChanged, filter, &ContactsFilterProxyModel::setFilterString);
156 q->connect(mView, qOverload<const Akonadi::Item &>(&Akonadi::EntityTreeView::doubleClicked), q, [this]() {
164 QObject::connect(etm, &Akonadi::EntityTreeModel::collectionTreeFetched, mView, &QTreeView::expandAll);
182EmailAddressSelectionWidget::EmailAddressSelectionWidget(bool showOnlyContactWithEmail, QAbstractItemModel *model, QWidget *parent)
A proxy model for ContactsTreeModel models.
Definition contactsfilterproxymodel.h:51
void setFilterString(const QString &filter)
Sets the filter that is used to filter for matching contacts and contact groups.
Definition contactsfilterproxymodel.cpp:47
static void widgetNeedsAkonadi(QWidget *widget)
A widget to select email addresses from Akonadi.
Definition emailaddressselectionwidget.h:57
void doubleClicked()
~EmailAddressSelectionWidget() override
Destroys the email address selection widget.
QLineEdit * searchLineEdit() const
Returns the line edit that is used for the search line.
Definition emailaddressselectionwidget.cpp:217
EmailAddressSelectionWidget(QWidget *parent=nullptr)
Creates a new email address selection widget.
Definition emailaddressselectionwidget.cpp:170
Akonadi::EmailAddressSelection::List selectedAddresses() const
Returns the list of selected email addresses.
Definition emailaddressselectionwidget.cpp:190
QTreeView * view() const
Returns the tree view that is used to list the items.
Definition emailaddressselectionwidget.cpp:222
An selection of an email address and corresponding name.
Definition emailaddressselection.h:37
QString email() const
Returns the address part of the selected email address.
Definition emailaddressselection.cpp:64
void collectionTreeFetched(const Akonadi::Collection::List &collections)
void doubleClicked(const Akonadi::Collection &collection)
void setModel(QAbstractItemModel *model) override
QString i18nc(const char *context, const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
QString label(StandardShortcut id)
NoDragDrop
NoEditTriggers
void setDragDropMode(DragDropMode behavior)
void setEditTriggers(EditTriggers triggers)
KeyPress
void setContentsMargins(const QMargins &margins)
void setClearButtonEnabled(bool enable)
virtual bool event(QEvent *e) override
virtual void keyPressEvent(QKeyEvent *event) override
void setPlaceholderText(const QString &)
void returnPressed()
void textChanged(const QString &text)
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
Q_EMITQ_EMIT
Q_OBJECTQ_OBJECT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual bool eventFilter(QObject *watched, QEvent *event)
void installEventFilter(QObject *filterObj)
QObject * parent() const const
bool isEmpty() const const
Key_Down
KeypadModifier
NoButton
QFuture< void > filter(QThreadPool *pool, Sequence &sequence, KeepFunctor &&filterFunction)
singleShot
void expandAll()
QHeaderView * header() const const
void hide()
void setFocus()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.