.TH "KListViewItem" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KListViewItem \- A listview item with support for alternate background colors. listview item with alternate background color support.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <klistview.h>\fP
.PP
Inherits \fBQListViewItem\fP.
.PP
Inherited by \fBKFileListViewItem\fP, \fBKFileTreeViewItem\fP, and KKeyChooserItem.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListView\fP *\fBparent\fP)"
.br
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListViewItem\fP *\fBparent\fP)"
.br
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListView\fP *\fBparent\fP, \fBQListViewItem\fP *after)"
.br
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListViewItem\fP *\fBparent\fP, \fBQListViewItem\fP *after)"
.br
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListView\fP *\fBparent\fP, \fBQString\fP, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null)"
.br
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListViewItem\fP *\fBparent\fP, \fBQString\fP, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null)"
.br
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListView\fP *\fBparent\fP, \fBQListViewItem\fP *after, \fBQString\fP, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null)"
.br
.ti -1c
.RI "\fBKListViewItem\fP (\fBQListViewItem\fP *\fBparent\fP, \fBQListViewItem\fP *after, \fBQString\fP, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null, \fBQString\fP=QString::null)"
.br
.ti -1c
.RI "virtual void \fBinsertItem\fP (\fBQListViewItem\fP *item)"
.br
.ti -1c
.RI "virtual void \fBtakeItem\fP (\fBQListViewItem\fP *item)"
.br
.ti -1c
.RI "bool \fBisAlternate\fP ()"
.br
.ti -1c
.RI "const \fBQColor\fP & \fBbackgroundColor\fP () KDE_DEPRECATED"
.br
.ti -1c
.RI "\fBQColor\fP \fBbackgroundColor\fP (int column)"
.br
.ti -1c
.RI "virtual void \fBpaintCell\fP (\fBQPainter\fP *p, const \fBQColorGroup\fP &cg, int column, int \fBwidth\fP, int alignment)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKListView\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A listview item with support for alternate background colors. listview item with alternate background color support. 

It is a drop-in replacement for \fBQListViewItem\fP
.PP
Definition at line 1009 of file klistview.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KListViewItem::KListViewItem (\fBQListView\fP * parent)"
.PP
constructors. 
.PP
The semantics remain as in \fBQListViewItem\fP. Although they accept a \fBQListViewItem\fP as parent, please don't mix KListViewItem (or subclasses) with \fBQListViewItem\fP (or subclasses). 
.PP
Definition at line 2129 of file klistview.cpp.
.SH "Member Function Documentation"
.PP 
.SS "bool KListViewItem::isAlternate ()"
.PP
returns true if this item is to be drawn with the alternate background 
.PP
Definition at line 2246 of file klistview.cpp.
.PP
References KListView::alternateBackground, KListView::d, QListView::firstChild(), QColor::isValid(), QListViewItem::itemAbove(), QListViewItem::itemBelow(), QListViewItem::listView(), m_known, m_odd, QListViewItem::nextSibling(), and QListViewItem::parent().
.PP
Referenced by backgroundColor().
.SS "const \fBQColor\fP & KListViewItem::backgroundColor ()"
.PP
returns the background color for this item 
.PP
Definition at line 2213 of file klistview.cpp.
.PP
References isAlternate(), and QListViewItem::listView().
.SS "\fBQColor\fP KListViewItem::backgroundColor (int column)"
.PP
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 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 2220 of file klistview.cpp.
.PP
References KListView::alternateBackground, QListView::columns(), KListView::columnSorted(), QColor::dark(), isAlternate(), QColor::light(), QListViewItem::listView(), and KListView::shadeSortColumn.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
