• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkdepim

  • KPIM
  • AddresseeLineEdit
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
KPIM::AddresseeLineEdit Class Reference

#include <addresseelineedit.h>

Inheritance diagram for KPIM::AddresseeLineEdit:
Inheritance graph
[legend]

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

AddresseeLineEdit::AddresseeLineEdit ( QWidget *  parent,
bool  enableCompletion = true 
)
explicit

Creates a new addressee line edit.

Parameters
parentThe parent object.
enableCompletionWhether autocompletion shall be enabled.

Definition at line 1091 of file addresseelineedit.cpp.

AddresseeLineEdit::~AddresseeLineEdit ( )
virtual

Destroys the addressee line edit.

Definition at line 1100 of file addresseelineedit.cpp.

Member Function Documentation

int KPIM::AddresseeLineEdit::addCompletionSource ( const QString &  name,
int  weight 
)
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.

void AddresseeLineEdit::addContact ( const KABC::Addressee &  contact,
int  weight,
int  source = -1 
)
protected

Adds a new contact to the completion with a given weight and source index.

Definition at line 1360 of file addresseelineedit.cpp.

void AddresseeLineEdit::addContactGroup ( const KABC::ContactGroup &  group,
int  weight,
int  source = -1 
)
protected

Same as the above, but this time with contact groups.

Definition at line 1355 of file addresseelineedit.cpp.

void AddresseeLineEdit::addItem ( const Akonadi::Item &  item,
int  weight,
int  source = -1 
)
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.

void AddresseeLineEdit::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Reimplemented for internal reasons.

API not affected.

See QLineEdit::contextMenuEvent().

Definition at line 1404 of file addresseelineedit.cpp.

QMenu * AddresseeLineEdit::createStandardContextMenu ( )
protectedvirtual

Reimplemented for subclass access to menu.

Definition at line 1413 of file addresseelineedit.cpp.

void AddresseeLineEdit::cursorAtEnd ( )
slot

Moves the cursor at the end of the line edit.

Definition at line 1336 of file addresseelineedit.cpp.

void AddresseeLineEdit::dropEvent ( QDropEvent *  event)
protectedvirtual

Reimplemented for smart insertion of dragged email addresses.

Definition at line 1279 of file addresseelineedit.cpp.

void AddresseeLineEdit::enableCompletion ( bool  enable)
slot

Sets whether autocompletion shall be enabled.

Definition at line 1341 of file addresseelineedit.cpp.

void AddresseeLineEdit::insert ( const QString &  t)
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.

void AddresseeLineEdit::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Reimplemented for internal reasons.

Definition at line 1125 of file addresseelineedit.cpp.

void AddresseeLineEdit::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented for smart insertion with middle mouse button.

Definition at line 1262 of file addresseelineedit.cpp.

void AddresseeLineEdit::paste ( )
protectedvirtual

Reimplemented for smart insertion of pasted email addresses.

Definition at line 1252 of file addresseelineedit.cpp.

void KPIM::AddresseeLineEdit::removeCompletionSource ( const QString &  source)
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.

void AddresseeLineEdit::setText ( const QString &  text)
virtualslot

Reimplemented for stripping whitespace after completion Danger: This is not virtual in the base class!

Definition at line 1245 of file addresseelineedit.cpp.

void KPIM::AddresseeLineEdit::textCompleted ( )
signal

The documentation for this class was generated from the following files:
  • addresseelineedit.h
  • addresseelineedit.cpp
This file is part of the KDE documentation.
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.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal