kabc Library API Documentation

KABC::AddressLineEdit Class Reference

A lineedit with LDAP and kabc completion. More...

#include <addresslineedit.h>

Inheritance diagram for KABC::AddressLineEdit:

KLineEdit QLineEdit KCompletionBase List of all members.

Public Slots

void cursorAtEnd ()
 Set cursor to end of line.

void enableCompletion (bool enable)
 Toggle completion.


Public Methods

virtual void setFont (const QFont &)
 Reimplented for internal reasons.


Protected Methods

virtual void loadAddresses ()
 Always call AddressLineEdit::loadAddresses() as the first thing.

virtual void keyPressEvent (QKeyEvent *)
virtual void dropEvent (QDropEvent *e)
virtual void paste ()
virtual void insert (const QString &t)

Detailed Description

A lineedit with LDAP and kabc completion.

This lineedit is supposed to be used wherever the user types email addresses and might want a completion. You can simply use it as a replacement for KLineEdit or QLineEdit.

You can enable or disable the lineedit at any time.

See also:
AddressLineEdit::enableCompletion()

Definition at line 48 of file addresslineedit.h.


Member Function Documentation

void AddressLineEdit::setFont const QFont   [virtual]
 

Reimplented for internal reasons.

@ see KLineEdit::setFont()

Definition at line 128 of file addresslineedit.cpp.

References KLineEdit::completionBox().

void AddressLineEdit::cursorAtEnd   [slot]
 

Set cursor to end of line.

Reimplemented from KLineEdit.

Definition at line 260 of file addresslineedit.cpp.

References QLineEdit::setCursorPosition(), and QLineEdit::text().

void AddressLineEdit::enableCompletion bool    enable [slot]
 

Toggle completion.

Definition at line 266 of file addresslineedit.cpp.

void AddressLineEdit::loadAddresses   [protected, virtual]
 

Always call AddressLineEdit::loadAddresses() as the first thing.

Use addAddress() to add addresses.

Definition at line 405 of file addresslineedit.cpp.

References KCompletion::clear().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:22:09 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001