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

kaddressbook

ContactListView Class Reference

#include <contactlistview.h>

Inheritance diagram for ContactListView:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 86 of file contactlistview.h.


Signals

void addresseeDropped (QDropEvent *)
void startAddresseeDrag ()

Public Member Functions

bool alternateBackground () const
const QColor & alternateColor () const
 ContactListView (KAddressBookTableView *view, KABC::AddressBook *doc, QWidget *parent, const char *name=0L)
int imColumn ()
void setAlternateBackgroundEnabled (bool enabled)
void setBackgroundPixmap (const QString &filename)
void setIMColumn (int column)
void setShowIM (bool enabled)
void setSingleLineEnabled (bool enabled)
void setToolTipsEnabled (bool enabled)
bool showIM ()
bool singleLine () const
bool tooltips () const
virtual ~ContactListView ()

Protected Slots

void itemDropped (QDropEvent *e)

Protected Member Functions

virtual bool acceptDrag (QDropEvent *e) const
void contentsDropEvent (QDropEvent *e)
void contentsMouseMoveEvent (QMouseEvent *e)
virtual void contentsMousePressEvent (QMouseEvent *)
virtual void paintEmptyArea (QPainter *p, const QRect &rect)

Constructor & Destructor Documentation

ContactListView::ContactListView ( KAddressBookTableView *  view,
KABC::AddressBook *  doc,
QWidget *  parent,
const char *  name = 0L 
)

Definition at line 253 of file contactlistview.cpp.

virtual ContactListView::~ContactListView (  )  [inline, virtual]

Definition at line 95 of file contactlistview.h.


Member Function Documentation

bool ContactListView::acceptDrag ( QDropEvent *  e  )  const [protected, virtual]

Definition at line 321 of file contactlistview.cpp.

void ContactListView::addresseeDropped ( QDropEvent *   )  [signal]

bool ContactListView::alternateBackground (  )  const [inline]

Definition at line 103 of file contactlistview.h.

const QColor& ContactListView::alternateColor (  )  const [inline]

Definition at line 109 of file contactlistview.h.

void ContactListView::contentsDropEvent ( QDropEvent *  e  )  [protected]

Definition at line 331 of file contactlistview.cpp.

void ContactListView::contentsMouseMoveEvent ( QMouseEvent *  e  )  [protected]

Definition at line 312 of file contactlistview.cpp.

void ContactListView::contentsMousePressEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 304 of file contactlistview.cpp.

int ContactListView::imColumn (  ) 

get the column used for IM presence

Definition at line 379 of file contactlistview.cpp.

void ContactListView::itemDropped ( QDropEvent *  e  )  [protected, slot]

Definition at line 326 of file contactlistview.cpp.

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 284 of file contactlistview.cpp.

void ContactListView::setAlternateBackgroundEnabled ( bool  enabled  ) 

Definition at line 336 of file contactlistview.cpp.

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 350 of file contactlistview.cpp.

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 374 of file contactlistview.cpp.

void ContactListView::setShowIM ( bool  enabled  ) 

Sets whether instant messaging presence should be shown in the first column.

Definition at line 364 of file contactlistview.cpp.

void ContactListView::setSingleLineEnabled ( bool  enabled  )  [inline]

Definition at line 107 of file contactlistview.h.

void ContactListView::setToolTipsEnabled ( bool  enabled  )  [inline]

Definition at line 101 of file contactlistview.h.

bool ContactListView::showIM (  ) 

Is presence being shown?

Definition at line 369 of file contactlistview.cpp.

bool ContactListView::singleLine (  )  const [inline]

Definition at line 106 of file contactlistview.h.

void ContactListView::startAddresseeDrag (  )  [signal]

bool ContactListView::tooltips (  )  const [inline]

Returns true if tooltips should be displayed, false otherwise.

Definition at line 100 of file contactlistview.h.


The documentation for this class was generated from the following files:
  • contactlistview.h
  • contactlistview.cpp

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal