libkdepim
addresseelineedit.cpp
Go to the documentation of this file.
124 } else if ( KStandardShortcut::shortcut( KStandardShortcut::TextCompletion ).contains( key ) ) {
172 QStringList lines = newText.split( QRegExp( QLatin1String( "\r?\n" ) ), QString::SkipEmptyParts );
339 void AddresseeLineEdit::addContactGroup( const KABC::ContactGroup &group, int weight, int source )
344 void AddresseeLineEdit::addContact( const KABC::Addressee &addr, int weight, int source, QString append )
379 // This happens when fullEmail contains a middle name, while our own fullName+email only has "first last".
435 QAction *configureBalooBlackList = new QAction(QLatin1String( "Configure Email Blacklist..." ),menu);
436 connect(configureBalooBlackList, SIGNAL(triggered(bool)), d, SLOT(slotConfigureBalooBlackList()));
void addContact(const KABC::Addressee &contact, int weight, int source=-1, QString append=QString())
Adds a new contact to the completion with a given weight source index append is added to completion s...
Definition: addresseelineedit.cpp:344
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString & append(QChar ch)
Type type() const
virtual void contextMenuEvent(QContextMenuEvent *)
Reimplemented for internal reasons.
Definition: addresseelineedit.cpp:397
virtual void dropEvent(QDropEvent *)
Reimplemented for smart insertion of dragged email addresses.
Definition: addresseelineedit.cpp:257
void truncate(int position)
void allowSemicolonAsSeparator(bool allow)
Sets whether semicolons are allowed as separators.
Definition: addresseelineedit.cpp:107
const QMimeData * mimeData() const
bool smartPaste() const
void init()
void callUserCancelled(const QString &str)
Definition: addresseelineedit.cpp:629
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void setChecked(bool)
void textCompleted()
int type() const
QString join(const QString &separator) const
Qt::MouseButtons buttons() const
bool useCompletion() const
void addItem(const Akonadi::Item &item, int weight, int source=-1)
Definition: addresseelineedit.cpp:329
void clear()
void updateSearchString()
QString number(int n, int base)
virtual void keyPressEvent(QKeyEvent *)
Reimplemented for internal reasons.
Definition: addresseelineedit.cpp:112
void append(const T &value)
QString fromUtf8(const char *str, int size)
bool isSpace() const
bool isAccepted() const
QClipboard * clipboard()
void removeCompletionSource(const QString &source)
Definition: addresseelineedit.cpp:441
virtual QMenu * createStandardContextMenu()
Reimplemented for subclass access to menu.
Definition: addresseelineedit.cpp:406
virtual void insert(const QString &)
Reimplemented for smart insertion of email addresses.
Definition: addresseelineedit.cpp:159
bool isEmpty() const
QString trimmed() const
bool searchExtended() const
void setUseSemicolonAsSeparator(bool useSemicolonAsSeparator)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual void setText(const QString &text)
Reimplemented for stripping whitespace after completion Danger: This is not virtual in the base class...
Definition: addresseelineedit.cpp:223
void callSetUserSelection(bool)
Definition: addresseelineedit.cpp:644
bool isCompletionEnabled() const
Definition: addresseelineedit.cpp:324
void cursorAtEnd()
Moves the cursor at the end of the line edit.
Definition: addresseelineedit.cpp:314
int addCompletionSource(const QString &name, int weight)
Adds the name of a completion source and its weight to the internal list of completion sources and re...
Definition: addresseelineedit.cpp:446
AddresseeLineEdit(QWidget *parent, bool enableCompletion=true)
Creates a new addressee line edit.
Definition: addresseelineedit.cpp:79
void doCompletion(bool ctrlT)
void restartTime(const QString &searchString)
void emitTextCompleted()
Definition: addresseelineedit.cpp:624
iterator end()
void setEnableBalooSearch(bool enable)
Definition: addresseelineedit.cpp:102
int key() const
void accept()
void startSearches()
virtual QByteArray encodedData(const char *format) const
virtual void configureCompletionOrder(QMenu *menu)
Definition: addresseelineedit.cpp:422
void setCheckable(bool)
QString & replace(int position, int n, QChar after)
QString searchString() const
virtual void mouseReleaseEvent(QMouseEvent *)
Reimplemented for smart insertion with middle mouse button.
Definition: addresseelineedit.cpp:240
typedef MouseButtons
QString mid(int position, int n) const
virtual void paste()
Reimplemented for smart insertion of pasted email addresses.
Definition: addresseelineedit.cpp:230
void callSetCompletedText(const QString &, bool)
Definition: addresseelineedit.cpp:634
const QChar at(int position) const
typedef ConstIterator
void setFont(const QFont &font)
Reimplemented for setting the font for line edit and completion box.
Definition: addresseelineedit.cpp:93
void setUseCompletion(bool useCompletion)
bool supportsSelection() const
int length() const
QString left(int n) const
void addCompletionItem(const QString &string, int weight, int source, const QStringList *keyWords=0)
const QPoint & pos() const
const_iterator constEnd() const
const_iterator constBegin() const
void setEnableBalooSearch(bool enableBalooSearch)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void enableCompletion(bool enable)
Sets whether autocompletion shall be enabled.
Definition: addresseelineedit.cpp:319
void setSelected(bool select)
iterator begin()
QString text() const
void setSmartPaste(bool smartPaste)
void addContactGroup(const KABC::ContactGroup &group, int weight, int source=-1)
Same as the above, but this time with contact groups.
Definition: addresseelineedit.cpp:339
virtual void dropEvent(QDropEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.