kaddressbook
ContactListView Class Reference
List of all members.Detailed Description
Definition at line 85 of file contactlistview.h.
Signals | |
void | startAddresseeDrag () |
void | addresseeDropped (QDropEvent *) |
Public Member Functions | |
ContactListView (KAddressBookTableView *view, KABC::AddressBook *doc, QWidget *parent, const char *name=0L) | |
virtual | ~ContactListView () |
bool | tooltips () const |
void | setToolTipsEnabled (bool enabled) |
bool | alternateBackground () const |
void | setAlternateBackgroundEnabled (bool enabled) |
bool | singleLine () const |
void | setSingleLineEnabled (bool enabled) |
const QColor & | alternateColor () const |
void | setBackgroundPixmap (const QString &filename) |
void | setShowIM (bool enabled) |
bool | showIM () |
void | setIMColumn (int column) |
int | imColumn () |
Protected Slots | |
void | itemDropped (QDropEvent *e) |
Protected Member Functions | |
virtual void | paintEmptyArea (QPainter *p, const QRect &rect) |
virtual void | contentsMousePressEvent (QMouseEvent *) |
void | contentsMouseMoveEvent (QMouseEvent *e) |
void | contentsDropEvent (QDropEvent *e) |
virtual bool | acceptDrag (QDropEvent *e) const |
Member Function Documentation
bool ContactListView::tooltips | ( | ) | const [inline] |
Returns true if tooltips should be displayed, false otherwise.
Definition at line 99 of file contactlistview.h.
void ContactListView::setBackgroundPixmap | ( | const QString & | filename | ) |
Sets the background pixmap to filename.
If the QString is empty (QString::isEmpty()), then the background pixmap will be disabled.
Definition at line 348 of file contactlistview.cpp.
void ContactListView::setShowIM | ( | bool | enabled | ) |
Sets whether instant messaging presence should be shown in the first column.
Definition at line 360 of file contactlistview.cpp.
bool ContactListView::showIM | ( | ) |
void ContactListView::setIMColumn | ( | int | column | ) |
Set the column index of the column used for instant messaging presence.
This method is necessary because presence, unlike the other fields, is not a KABC::Field, and cannot be handled using their methods. TODO: make presence a KABC::Field post 3.3
Definition at line 370 of file contactlistview.cpp.
int ContactListView::imColumn | ( | ) |
void ContactListView::paintEmptyArea | ( | QPainter * | p, | |
const QRect & | rect | |||
) | [protected, virtual] |
Paints the background pixmap in the empty area.
This method is needed since Qt::FixedPixmap will not scroll with the list view.
Definition at line 282 of file contactlistview.cpp.
The documentation for this class was generated from the following files: