kdeui Library API Documentation

KListViewItem Class Reference

A listview item with support for alternate background colours. listview item with alternate background colour support. More...

#include <klistview.h>

Inheritance diagram for KListViewItem:

QListViewItem List of all members.

Public Methods

 KListViewItem (QListView *parent)
 constructors.

bool isAlternate ()
 retuns true if this item is to be drawn with the alternate background

const QColorbackgroundColor ()
 returns the background colour for this item

virtual void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment)

Detailed Description

A listview item with support for alternate background colours. listview item with alternate background colour support.

It is a drop-in replacement for QListViewItem

Definition at line 909 of file klistview.h.


Constructor & Destructor Documentation

KListViewItem::KListViewItem QListView   parent
 

constructors.

The semantics remain as in QListViewItem. Although they accept a QListViewItem as parent, please don't mix KListViewItem (or subclasses) with QListViewItem (or subclasses).

Definition at line 1946 of file klistview.cpp.


Member Function Documentation

bool KListViewItem::isAlternate  
 

retuns true if this item is to be drawn with the alternate background

Definition at line 2018 of file klistview.cpp.

References KListView::alternateBackground(), QColor::isValid(), QListViewItem::itemAbove(), QListViewItem::listView(), m_known, m_odd, QListViewItem::nextSibling(), and QListViewItem::parent().

Referenced by backgroundColor().

const QColor & KListViewItem::backgroundColor  
 

returns the background colour for this item

Definition at line 2011 of file klistview.cpp.

References isAlternate(), and QListViewItem::listView().


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:21:06 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001