Pimcommon
addresseelineedit.cpp
265 if (d->useCompletion() && QApplication::clipboard()->supportsSelection() && !isReadOnly() && event->button() == Qt::MiddleButton) {
317 connect(expandJob, &Akonadi::ContactGroupExpandJob::result, this, &AddresseeLineEdit::groupExpandResult);
482void AddresseeLineEdit::addContactGroup(const KContacts::ContactGroup &group, int weight, int source)
487void AddresseeLineEdit::addContact(const QStringList &emails, const KContacts::Addressee &addr, int weight, int source, QString append)
519 // This happens when fullEmail contains a middle name, while our own fullName+email only has "first last".
536void AddresseeLineEdit::addContact(const KContacts::Addressee &addr, int weight, int source, const QString &append)
597 QScopedPointer<PimCommon::CompletionConfigureDialog> dlg(new PimCommon::CompletionConfigureDialog(this));
619 AddresseeLineEditManager::self()->cleanupRecentAddressEmailList(PimCommon::RecentAddresses::self(recentAddressConfig())->addresses());
636 if (!name.isEmpty() && (name[0] == QLatin1Char('"')) && (name[name.length() - 1] == QLatin1Char('"'))) {
663 if (d->completionInitialized() && (object == completionBox() || completionBox()->findChild<QWidget *>(object->objectName()) == object)) {
664 if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::MouseMove || event->type() == QEvent::MouseButtonRelease
678 if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::MouseButtonDblClick || buttons & Qt::LeftButton
698 if (keyEvent->key() == Qt::Key_Up || keyEvent->key() == Qt::Key_Down || keyEvent->key() == Qt::Key_Tab) {
704 if ((object == this) && (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease) && completionBox()->isVisible()) {
767 } else if (event->type() == QEvent::KeyRelease && (keyEvent->key() == Qt::Key_Tab || keyEvent->key() == Qt::Key_Backtab)) {
877 connect(job, &Akonadi::ContactGroupSearchJob::result, this, &AddresseeLineEdit::slotGroupSearchResult);
888 // Laurent I don't understand why Akonadi::ContactGroupSearchJob send two "result(...)" signal. For the moment
916 connect(expandJob, &Akonadi::ContactGroupExpandJob::result, this, &AddresseeLineEdit::groupExpandResult);
bool hasPayload() const
T payload() const
CompletionPopupAuto
CompletionMan
void setNameFromString(const QString &s)
void addEmail(const Email &email)
QString familyName() const
QStringList emails() const
QString nickName() const
AddresseeList List
QString fullEmail(const QString &email=QString()) const
QString givenName() const
QString name() const
Addressee::List parseVCards(const QByteArray &vcard) const
void result(KJob *job)
bool event(QEvent *) override
void setCompletedText(const QString &) override
QMenu * createStandardContextMenu()
virtual void setText(const QString &)
void keyPressEvent(QKeyEvent *) override
void setUserSelection(bool userSelection)
void mouseReleaseEvent(QMouseEvent *) override
void setCompletionModeDisabled(KCompletion::CompletionMode mode, bool disable=true)
virtual KCompletionBox * completionBox(bool create=true)
void userCancelled(const QString &cancelText)
static QString removeAcceleratorMarker(const QString &label)
The CompletionConfigureDialog class.
Definition completionconfiguredialog.h:26
static RecentAddresses * self(KConfig *config=nullptr)
Definition recentaddresses.cpp:26
KCODECS_EXPORT QString normalizedAddress(const QString &displayName, const QString &addrSpec, const QString &comment=QString())
KCODECS_EXPORT QString quoteNameIfNecessary(const QString &str)
KCODECS_EXPORT bool extractEmailAddressAndName(const QString &aStr, QString &mail, QString &name)
KCODECS_EXPORT QString normalizeAddressesAndDecodeIdn(const QString &addresses)
KCODECS_EXPORT QStringList splitAddressList(const QString &aStr)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
QString fullName(const PartType &type)
KCODECS_EXPORT QString decodeRFC2047String(QByteArrayView src, QByteArray *usedCS, const QByteArray &defaultCS=QByteArray(), CharsetOption option=NoOption)
KCONTACTS_EXPORT bool convertFromXml(QIODevice *device, ContactGroup &group, QString *errorMessage=nullptr)
KCONTACTS_EXPORT bool canDecode(const QMimeData *md)
KCONTACTS_EXPORT bool fromMimeData(const QMimeData *md, KContacts::Addressee::List &contacts)
KCODECS_EXPORT QString decodeMailtoUrl(const QUrl &mailtoUrl)
KIOCORE_EXPORT StoredTransferJob * storedGet(const QUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
PostalAddress address(const QVariant &location)
void setWindow(QObject *job, QWidget *widget)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QString name(StandardAction id)
const QList< QKeySequence > & shortcut(StandardShortcut id)
TextCompletion
SubstringCompletion
void setCheckable(bool)
void setChecked(bool)
text
void triggered(bool checked)
char * data()
bool isSpace(char32_t ucs4)
bool supportsSelection() const const
QPoint pos()
MouseButtonPress
QClipboard * clipboard()
ReadOnly
cursorPosition
virtual void dropEvent(QDropEvent *e) override
hasSelectedText
void insert(const QString &newText)
void setModified(bool)
void paste()
bool isReadOnly() const const
selectedText
int selectionStart() const const
text
void append(QList< T > &&value)
qsizetype count() const const
bool empty() const const
reference front()
bool isEmpty() const const
qsizetype removeAll(const AT &t)
qsizetype size() const const
count
currentRow
QListWidgetItem * item(int row) const const
QListWidgetItem * itemAt(const QPoint &p) const const
void scrollToItem(const QListWidgetItem *item, QAbstractItemView::ScrollHint hint)
void setCurrentItem(QListWidgetItem *item)
void setSelected(bool select)
QString text() const const
bool hasText() const const
bool hasUrls() const const
QString text() const const
QList< QUrl > urls() const const
QPoint pos() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
bool disconnect(const QMetaObject::Connection &connection)
virtual bool eventFilter(QObject *watched, QEvent *event)
T findChild(const QString &name, Qt::FindChildOptions options) const const
objectName
T qobject_cast(QObject *object)
Qt::MouseButtons buttons() const const
QString & append(QChar ch)
QString arg(Args &&... args) const const
const QChar at(qsizetype position) const const
void chop(qsizetype n)
void clear()
bool isEmpty() const const
QString left(qsizetype n) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
QString number(double n, char format, int precision)
QString & remove(QChar ch, Qt::CaseSensitivity cs)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QString trimmed() const const
void truncate(qsizetype position)
QString join(QChar separator) const const
Key_Up
MiddleButton
void keyEvent(KeyAction action, QWidget *widget, Qt::Key key, Qt::KeyboardModifiers modifier, int delay)
QString fromPercentEncoding(const QByteArray &input)
void setFont(const QFont &)
QWidget * parentWidget() const const
pos
bool isVisible() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 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:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.