kdeui
KListViewItem Class Reference
A listview item with support for alternate background colors. More...
#include <klistview.h>
Public Member Functions | |
QColor | backgroundColor (int column) |
const QColor & | backgroundColor () KDE_DEPRECATED |
virtual void | insertItem (QListViewItem *item) |
bool | isAlternate () |
KListViewItem (QListViewItem *parent, QListViewItem *after, QString, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null) | |
KListViewItem (QListView *parent, QListViewItem *after, QString, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null) | |
KListViewItem (QListViewItem *parent, QString, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null) | |
KListViewItem (QListView *parent, QString, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null, QString=QString::null) | |
KListViewItem (QListViewItem *parent, QListViewItem *after) | |
KListViewItem (QListView *parent, QListViewItem *after) | |
KListViewItem (QListViewItem *parent) | |
KListViewItem (QListView *parent) | |
virtual void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment) |
virtual void | takeItem (QListViewItem *item) |
virtual | ~KListViewItem () |
Detailed Description
A listview item with support for alternate background colors.It is a drop-in replacement for QListViewItem
listview item with alternate background color support
Definition at line 1009 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 2146 of file klistview.cpp.
KListViewItem::KListViewItem | ( | QListViewItem * | parent | ) |
Definition at line 2152 of file klistview.cpp.
KListViewItem::KListViewItem | ( | QListView * | parent, | |
QListViewItem * | after | |||
) |
Definition at line 2158 of file klistview.cpp.
KListViewItem::KListViewItem | ( | QListViewItem * | parent, | |
QListViewItem * | after | |||
) |
Definition at line 2164 of file klistview.cpp.
KListViewItem::KListViewItem | ( | QListView * | parent, | |
QString | label1, | |||
QString | label2 = QString::null , |
|||
QString | label3 = QString::null , |
|||
QString | label4 = QString::null , |
|||
QString | label5 = QString::null , |
|||
QString | label6 = QString::null , |
|||
QString | label7 = QString::null , |
|||
QString | label8 = QString::null | |||
) |
Definition at line 2170 of file klistview.cpp.
KListViewItem::KListViewItem | ( | QListViewItem * | parent, | |
QString | label1, | |||
QString | label2 = QString::null , |
|||
QString | label3 = QString::null , |
|||
QString | label4 = QString::null , |
|||
QString | label5 = QString::null , |
|||
QString | label6 = QString::null , |
|||
QString | label7 = QString::null , |
|||
QString | label8 = QString::null | |||
) |
Definition at line 2178 of file klistview.cpp.
KListViewItem::KListViewItem | ( | QListView * | parent, | |
QListViewItem * | after, | |||
QString | label1, | |||
QString | label2 = QString::null , |
|||
QString | label3 = QString::null , |
|||
QString | label4 = QString::null , |
|||
QString | label5 = QString::null , |
|||
QString | label6 = QString::null , |
|||
QString | label7 = QString::null , |
|||
QString | label8 = QString::null | |||
) |
Definition at line 2186 of file klistview.cpp.
KListViewItem::KListViewItem | ( | QListViewItem * | parent, | |
QListViewItem * | after, | |||
QString | label1, | |||
QString | label2 = QString::null , |
|||
QString | label3 = QString::null , |
|||
QString | label4 = QString::null , |
|||
QString | label5 = QString::null , |
|||
QString | label6 = QString::null , |
|||
QString | label7 = QString::null , |
|||
QString | label8 = QString::null | |||
) |
Definition at line 2194 of file klistview.cpp.
KListViewItem::~KListViewItem | ( | ) | [virtual] |
Definition at line 2202 of file klistview.cpp.
Member Function Documentation
QColor KListViewItem::backgroundColor | ( | int | column | ) |
returns the background color for this item at given column This can be different in the column which is sorted due to shading ### could be merged with above (column = -1) to be source compatible ### but will only work if sort-shading is not used or the listView has ### only 1 column
- Since:
- 3.4
Definition at line 2237 of file klistview.cpp.
const QColor & KListViewItem::backgroundColor | ( | ) |
void KListViewItem::insertItem | ( | QListViewItem * | item | ) | [virtual] |
bool KListViewItem::isAlternate | ( | ) |
returns true if this item is to be drawn with the alternate background
Definition at line 2263 of file klistview.cpp.
void KListViewItem::paintCell | ( | QPainter * | p, | |
const QColorGroup & | cg, | |||
int | column, | |||
int | width, | |||
int | alignment | |||
) | [virtual] |
void KListViewItem::takeItem | ( | QListViewItem * | item | ) | [virtual] |
The documentation for this class was generated from the following files: