libkdepim
#include <addresseelineedit.h>
Public Slots | |
void | cursorAtEnd () |
void | enableCompletion (bool enable) |
virtual void | setText (const QString &text) |
Signals | |
void | textCompleted () |
Public Member Functions | |
AddresseeLineEdit (QWidget *parent, bool enableCompletion=true) | |
virtual | ~AddresseeLineEdit () |
void | allowSemicolonAsSeparator (bool allow) |
void | setFont (const QFont &font) |
Protected Member Functions | |
int | addCompletionSource (const QString &name, int weight) |
void | addContact (const KABC::Addressee &contact, int weight, int source=-1) |
void | addContactGroup (const KABC::ContactGroup &group, int weight, int source=-1) |
void | addItem (const Akonadi::Item &item, int weight, int source=-1) |
virtual void | contextMenuEvent (QContextMenuEvent *) |
virtual QMenu * | createStandardContextMenu () |
virtual void | dropEvent (QDropEvent *) |
virtual void | insert (const QString &) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | paste () |
void | removeCompletionSource (const QString &source) |
Detailed Description
Definition at line 61 of file addresseelineedit.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new addressee line edit.
- Parameters
-
parent The parent object. enableCompletion Whether autocompletion shall be enabled.
Definition at line 1091 of file addresseelineedit.cpp.
|
virtual |
Destroys the addressee line edit.
Definition at line 1100 of file addresseelineedit.cpp.
Member Function Documentation
|
protected |
Adds the name
of a completion source and its weight
to the internal list of completion sources and returns its index, which can be used for insertion of items associated with that source.
If the source already exists, the weight will be updated.
Definition at line 1437 of file addresseelineedit.cpp.
|
protected |
Adds a new contact
to the completion with a given weight
and source
index.
Definition at line 1360 of file addresseelineedit.cpp.
|
protected |
Same as the above, but this time with contact groups.
Definition at line 1355 of file addresseelineedit.cpp.
|
protected |
Definition at line 1346 of file addresseelineedit.cpp.
void AddresseeLineEdit::allowSemicolonAsSeparator | ( | bool | allow | ) |
Sets whether semicolons are allowed as separators.
Definition at line 1120 of file addresseelineedit.cpp.
|
protectedvirtual |
Reimplemented for internal reasons.
API not affected.
See QLineEdit::contextMenuEvent().
Definition at line 1404 of file addresseelineedit.cpp.
|
protectedvirtual |
Reimplemented for subclass access to menu.
Definition at line 1413 of file addresseelineedit.cpp.
|
slot |
Moves the cursor at the end of the line edit.
Definition at line 1336 of file addresseelineedit.cpp.
|
protectedvirtual |
Reimplemented for smart insertion of dragged email addresses.
Definition at line 1279 of file addresseelineedit.cpp.
|
slot |
Sets whether autocompletion shall be enabled.
Definition at line 1341 of file addresseelineedit.cpp.
|
protectedvirtual |
Reimplemented for smart insertion of email addresses.
Features:
- Automatically adds ',' if necessary to separate email addresses
- Correctly decodes mailto URLs
- Recognizes email addresses which are protected against address harvesters, i.e. "name at kde dot org" and "name(at)kde.org"
Definition at line 1181 of file addresseelineedit.cpp.
|
protectedvirtual |
Reimplemented for internal reasons.
Definition at line 1125 of file addresseelineedit.cpp.
|
protectedvirtual |
Reimplemented for smart insertion with middle mouse button.
Definition at line 1262 of file addresseelineedit.cpp.
|
protectedvirtual |
Reimplemented for smart insertion of pasted email addresses.
Definition at line 1252 of file addresseelineedit.cpp.
|
protected |
Definition at line 1432 of file addresseelineedit.cpp.
void AddresseeLineEdit::setFont | ( | const QFont & | font | ) |
Reimplemented for setting the font
for line edit and completion box.
Definition at line 1111 of file addresseelineedit.cpp.
|
virtualslot |
Reimplemented for stripping whitespace after completion Danger: This is not virtual in the base class!
Definition at line 1245 of file addresseelineedit.cpp.
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.