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:

Public Methods | |
KListViewItem (QListView *parent) | |
constructors. | |
bool | isAlternate () |
retuns true if this item is to be drawn with the alternate background | |
const QColor & | backgroundColor () |
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
|
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
|
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(). |
|
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: