KListViewItem Class Reference
A listview item with support for alternate background colors. listview item with alternate background color support. More...
#include <klistview.h>
Inheritance diagram for KListViewItem:

Public Methods | |
KListViewItem (QListView *parent) | |
bool | isAlternate () |
const QColor & | backgroundColor () |
virtual void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment) |
Detailed Description
A listview item with support for alternate background colors. listview item with alternate background color support.It is a drop-in replacement for QListViewItem
Definition at line 986 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 2037 of file klistview.cpp. |
Member Function Documentation
|
returns true if this item is to be drawn with the alternate background
Definition at line 2111 of file klistview.cpp. References KListView::alternateBackground(), KListView::d, QColor::isValid(), QListViewItem::itemAbove(), QListViewItem::itemBelow(), QListViewItem::listView(), m_known, m_odd, QListViewItem::nextSibling(), and QListViewItem::parent(). Referenced by backgroundColor(). |
|
returns the background color for this item
Definition at line 2104 of file klistview.cpp. References isAlternate(), and QListViewItem::listView(). |
The documentation for this class was generated from the following files: