libkdepim
KPIM::AddresseeLineEdit Class Reference
#include <addresseelineedit.h>

Detailed Description
Definition at line 54 of file addresseelineedit.h.
Public Slots | |
| void | cursorAtEnd () |
| void | enableCompletion (bool enable) |
| virtual void | setText (const QString &txt) |
Public Member Functions | |
| AddresseeLineEdit (QWidget *parent, bool useCompletion=true) | |
| virtual void | setFont (const QFont &) |
| virtual | ~AddresseeLineEdit () |
Protected Slots | |
| virtual void | loadContacts () |
| void | slotIMAPCompletionOrderChanged () |
Protected Member Functions | |
| int | addCompletionSource (const QString &) |
| void | addContact (const KABC::Addressee &, int weight, int source=-1) |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
| QMenu * | createStandardContextMenu () |
| void | doCompletion (bool ctrlT) |
| virtual void | dropEvent (QDropEvent *e) |
| virtual void | insert (const QString &text) |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *e) |
| virtual void | paste () |
Static Protected Member Functions | |
| static KCompletion::CompOrder | completionOrder () |
Constructor & Destructor Documentation
| AddresseeLineEdit::AddresseeLineEdit | ( | QWidget * | parent, | |
| bool | useCompletion = true | |||
| ) | [explicit] |
Definition at line 93 of file addresseelineedit.cpp.
| AddresseeLineEdit::~AddresseeLineEdit | ( | ) | [virtual] |
Definition at line 168 of file addresseelineedit.cpp.
Member Function Documentation
| int KPIM::AddresseeLineEdit::addCompletionSource | ( | const QString & | source | ) | [protected] |
Adds the name of a completion source to the internal list of such sources and returns its index, such that that can be used for insertion of items associated with that source.
Definition at line 944 of file addresseelineedit.cpp.
| void AddresseeLineEdit::addContact | ( | const KABC::Addressee & | addr, | |
| int | weight, | |||
| int | source = -1 | |||
| ) | [protected] |
Definition at line 562 of file addresseelineedit.cpp.
| KCompletion::CompOrder KPIM::AddresseeLineEdit::completionOrder | ( | ) | [static, protected] |
return whether we are using sorted or weighted display
Definition at line 931 of file addresseelineedit.cpp.
| void AddresseeLineEdit::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [protected, virtual] |
Re-implemented for internal reasons.
API not affected.
See QLineEdit::contextMenuEvent().
Definition at line 831 of file addresseelineedit.cpp.
| QMenu * AddresseeLineEdit::createStandardContextMenu | ( | ) | [protected] |
| void AddresseeLineEdit::cursorAtEnd | ( | ) | [slot] |
Definition at line 365 of file addresseelineedit.cpp.
| void AddresseeLineEdit::doCompletion | ( | bool | ctrlT | ) | [protected] |
Definition at line 375 of file addresseelineedit.cpp.
| void AddresseeLineEdit::dropEvent | ( | QDropEvent * | e | ) | [protected, virtual] |
Reimplemented for smart insertion of dragged email addresses.
Definition at line 321 of file addresseelineedit.cpp.
| void AddresseeLineEdit::enableCompletion | ( | bool | enable | ) | [slot] |
Definition at line 370 of file addresseelineedit.cpp.
| void AddresseeLineEdit::insert | ( | const QString & | text | ) | [protected, virtual] |
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 229 of file addresseelineedit.cpp.
| void AddresseeLineEdit::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Definition at line 183 of file addresseelineedit.cpp.
| void AddresseeLineEdit::loadContacts | ( | ) | [protected, virtual, slot] |
Definition at line 507 of file addresseelineedit.cpp.
| void AddresseeLineEdit::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Reimplemented for smart insertion with middle mouse button.
Definition at line 307 of file addresseelineedit.cpp.
| void AddresseeLineEdit::paste | ( | ) | [protected, virtual] |
Reimplemented for smart insertion of pasted email addresses.
Definition at line 297 of file addresseelineedit.cpp.
| void AddresseeLineEdit::setFont | ( | const QFont & | font | ) | [virtual] |
Definition at line 175 of file addresseelineedit.cpp.
| void AddresseeLineEdit::setText | ( | const QString & | txt | ) | [virtual, slot] |
Reimplemented for stripping whitespace after completion.
Definition at line 292 of file addresseelineedit.cpp.
| void KPIM::AddresseeLineEdit::slotIMAPCompletionOrderChanged | ( | ) | [protected, slot] |
Definition at line 862 of file addresseelineedit.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference