\section{KIcon\-View\-Item Class Reference}
\label{classKIconViewItem}\index{KIconViewItem@{KIconViewItem}}
A variant of {\bf QIcon\-View\-Item} that wraps words better.  


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

Inheritance diagram for KIcon\-View\-Item:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=67pt]{classKIconViewItem__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIcon\-View\-Item:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=182pt]{classKIconViewItem__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent)\label{classKIconViewItem_a0}

\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent, {\bf QIcon\-View\-Item} $\ast$after)\label{classKIconViewItem_a1}

\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent, const {\bf QString} \&{\bf text})\label{classKIconViewItem_a2}

\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent, {\bf QIcon\-View\-Item} $\ast$after, const {\bf QString} \&{\bf text})\label{classKIconViewItem_a3}

\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent, const {\bf QString} \&{\bf text}, const {\bf QPixmap} \&icon)\label{classKIconViewItem_a4}

\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent, {\bf QIcon\-View\-Item} $\ast$after, const {\bf QString} \&{\bf text}, const {\bf QPixmap} \&icon)\label{classKIconViewItem_a5}

\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent, const {\bf QString} \&{\bf text}, const {\bf QPicture} \&{\bf picture})\label{classKIconViewItem_a6}

\item 
{\bf KIcon\-View\-Item} ({\bf QIcon\-View} $\ast$parent, {\bf QIcon\-View\-Item} $\ast$after, const {\bf QString} \&{\bf text}, const {\bf QPicture} \&{\bf picture})\label{classKIconViewItem_a7}

\item 
void {\bf set\-Pixmap\-Size} (const {\bf QSize} \&{\bf size})
\item 
{\bf QSize} {\bf pixmap\-Size} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf init} ()\label{classKIconViewItem_b0}

\item 
virtual void {\bf calc\-Rect} (const {\bf QString} \&text\_\-=QString::null)\label{classKIconViewItem_b1}

\item 
virtual void {\bf paint\-Item} ({\bf QPainter} $\ast$p, const {\bf QColor\-Group} \&c)\label{classKIconViewItem_b2}

\item 
{\bf KWord\-Wrap} $\ast$ {\bf word\-Wrap} ()\label{classKIconViewItem_b3}

\item 
void {\bf paint\-Pixmap} ({\bf QPainter} $\ast$p, const {\bf QColor\-Group} \&c)\label{classKIconViewItem_b4}

\item 
void {\bf paint\-Text} ({\bf QPainter} $\ast$p, const {\bf QColor\-Group} \&c)\label{classKIconViewItem_b5}

\end{CompactItemize}


\subsection{Detailed Description}
A variant of {\bf QIcon\-View\-Item} that wraps words better. 

KIcon\-View\-Item exists to improve the word-wrap functionality of {\bf QIcon\-View\-Item} Use KIcon\-View\-Item instead of {\bf QIcon\-View\-Item} for any iconview item you might have :)

\begin{Desc}
\item[Author:]David Faure $<${\tt david@mandrakesoft.com}$>$ \end{Desc}




Definition at line 224 of file kiconview.h.

\subsection{Member Function Documentation}
\index{KIconViewItem@{KIcon\-View\-Item}!setPixmapSize@{setPixmapSize}}
\index{setPixmapSize@{setPixmapSize}!KIconViewItem@{KIcon\-View\-Item}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIcon\-View\-Item::set\-Pixmap\-Size (const {\bf QSize} \& {\em size})}\label{classKIconViewItem_a9}


Using this function, you can specify a custom size for the pixmap. 

The geometry of the item will be calculated to let a pixmap of the given size fit in the icon\-View without needing an update. This may be useful if you want to change the pixmap later without breaking the layout. A possible use of this function is to replace a file\-Item icon by a larger pixmap (preview). \begin{Desc}
\item[Since:]3.3\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em size}]The size to use \end{description}
\end{Desc}


Definition at line 720 of file kiconview.cpp.\index{KIconViewItem@{KIcon\-View\-Item}!pixmapSize@{pixmapSize}}
\index{pixmapSize@{pixmapSize}!KIconViewItem@{KIcon\-View\-Item}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QSize} KIcon\-View\-Item::pixmap\-Size () const}\label{classKIconViewItem_a10}


\begin{Desc}
\item[Returns:]The size set by {\bf set\-Pixmap\-Size()}{\rm (p.\,\pageref{classKIconViewItem_a9})} or QSize( 0, 0 ) \end{Desc}
\begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 715 of file kiconview.cpp.

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