\section{KColor\-Patch Class Reference}
\label{classKColorPatch}\index{KColorPatch@{KColorPatch}}
A color displayer.  


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

Inheritance diagram for KColor\-Patch:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=54pt]{classKColorPatch__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KColor\-Patch:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=77pt]{classKColorPatch__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf color\-Changed} (const {\bf QColor} \&)\label{classKColorPatch_l0}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KColor\-Patch} ({\bf QWidget} $\ast$parent)\label{classKColorPatch_a0}

\item 
void {\bf set\-Color} (const {\bf QColor} \&col)\label{classKColorPatch_a2}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf draw\-Contents} ({\bf QPainter} $\ast$painter)\label{classKColorPatch_b0}

\item 
virtual void {\bf mouse\-Move\-Event} ({\bf QMouse\-Event} $\ast$)\label{classKColorPatch_b1}

\item 
virtual void {\bf drag\-Enter\-Event} ({\bf QDrag\-Enter\-Event} $\ast$)\label{classKColorPatch_b2}

\item 
virtual void {\bf drop\-Event} ({\bf QDrop\-Event} $\ast$)\label{classKColorPatch_b3}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKColorPatch_b4}

\end{CompactItemize}


\subsection{Detailed Description}
A color displayer. 

The KColor\-Patch widget is a (usually small) widget showing a selected color e. g. in the {\bf KColor\-Dialog}{\rm (p.\,\pageref{classKColorDialog})}. It automatically handles drag and drop from and on the widget. 



Definition at line 309 of file kcolordialog.h.

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