\section{KList\-View\-Item Class Reference}
\label{classKListViewItem}\index{KListViewItem@{KListViewItem}}
A listview item with support for alternate background colors. listview item with alternate background color support.  


{\tt \#include $<$klistview.h$>$}

Inheritance diagram for KList\-View\-Item:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=124pt]{classKListViewItem__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KList\-View\-Item:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=58pt]{classKListViewItem__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KList\-View\-Item} ({\bf QList\-View} $\ast${\bf parent})
\item 
{\bf KList\-View\-Item} ({\bf QList\-View\-Item} $\ast${\bf parent})\label{classKListViewItem_a1}

\item 
{\bf KList\-View\-Item} ({\bf QList\-View} $\ast${\bf parent}, {\bf QList\-View\-Item} $\ast$after)\label{classKListViewItem_a2}

\item 
{\bf KList\-View\-Item} ({\bf QList\-View\-Item} $\ast${\bf parent}, {\bf QList\-View\-Item} $\ast$after)\label{classKListViewItem_a3}

\item 
{\bf KList\-View\-Item} ({\bf QList\-View} $\ast${\bf parent}, {\bf QString}, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null)\label{classKListViewItem_a4}

\item 
{\bf KList\-View\-Item} ({\bf QList\-View\-Item} $\ast${\bf parent}, {\bf QString}, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null)\label{classKListViewItem_a5}

\item 
{\bf KList\-View\-Item} ({\bf QList\-View} $\ast${\bf parent}, {\bf QList\-View\-Item} $\ast$after, {\bf QString}, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null)\label{classKListViewItem_a6}

\item 
{\bf KList\-View\-Item} ({\bf QList\-View\-Item} $\ast${\bf parent}, {\bf QList\-View\-Item} $\ast$after, {\bf QString}, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null, {\bf QString}=QString::null)\label{classKListViewItem_a7}

\item 
virtual void {\bf insert\-Item} ({\bf QList\-View\-Item} $\ast$item)\label{classKListViewItem_a9}

\item 
virtual void {\bf take\-Item} ({\bf QList\-View\-Item} $\ast$item)\label{classKListViewItem_a10}

\item 
bool {\bf is\-Alternate} ()
\item 
const {\bf QColor} \& {\bf background\-Color} () KDE\_\-DEPRECATED
\item 
{\bf QColor} {\bf background\-Color} (int column)
\item 
virtual void {\bf paint\-Cell} ({\bf QPainter} $\ast$p, const {\bf QColor\-Group} \&cg, int column, int {\bf width}, int alignment)\label{classKListViewItem_a14}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KList\-View}\label{classKListViewItem_n0}

\end{CompactItemize}


\subsection{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 {\bf QList\-View\-Item}



Definition at line 1009 of file klistview.h.

\subsection{Constructor \& Destructor Documentation}
\index{KListViewItem@{KList\-View\-Item}!KListViewItem@{KListViewItem}}
\index{KListViewItem@{KListViewItem}!KListViewItem@{KList\-View\-Item}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-View\-Item::KList\-View\-Item ({\bf QList\-View} $\ast$ {\em parent})}\label{classKListViewItem_a0}


constructors. 

The semantics remain as in {\bf QList\-View\-Item}. Although they accept a {\bf QList\-View\-Item} as parent, please don't mix KList\-View\-Item (or subclasses) with {\bf QList\-View\-Item} (or subclasses). 

Definition at line 2129 of file klistview.cpp.

\subsection{Member Function Documentation}
\index{KListViewItem@{KList\-View\-Item}!isAlternate@{isAlternate}}
\index{isAlternate@{isAlternate}!KListViewItem@{KList\-View\-Item}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KList\-View\-Item::is\-Alternate ()}\label{classKListViewItem_a11}


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



Definition at line 2246 of file klistview.cpp.

References KList\-View::alternate\-Background, KList\-View::d, QList\-View::first\-Child(), QColor::is\-Valid(), QList\-View\-Item::item\-Above(), QList\-View\-Item::item\-Below(), QList\-View\-Item::list\-View(), m\_\-known, m\_\-odd, QList\-View\-Item::next\-Sibling(), and QList\-View\-Item::parent().

Referenced by background\-Color().\index{KListViewItem@{KList\-View\-Item}!backgroundColor@{backgroundColor}}
\index{backgroundColor@{backgroundColor}!KListViewItem@{KList\-View\-Item}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QColor} \& KList\-View\-Item::background\-Color ()}\label{classKListViewItem_a12}


returns the background color for this item 



Definition at line 2213 of file klistview.cpp.

References is\-Alternate(), and QList\-View\-Item::list\-View().\index{KListViewItem@{KList\-View\-Item}!backgroundColor@{backgroundColor}}
\index{backgroundColor@{backgroundColor}!KListViewItem@{KList\-View\-Item}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QColor} KList\-View\-Item::background\-Color (int {\em column})}\label{classKListViewItem_a13}


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 list\-View has \#\#\# only 1 column \begin{Desc}
\item[Since:]3.4 \end{Desc}




Definition at line 2220 of file klistview.cpp.

References KList\-View::alternate\-Background, QList\-View::columns(), KList\-View::column\-Sorted(), QColor::dark(), is\-Alternate(), QColor::light(), QList\-View\-Item::list\-View(), and KList\-View::shade\-Sort\-Column.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
klistview.h\item 
klistview.cpp\end{CompactItemize}
