\section{KPopup\-Title Class Reference}
\label{classKPopupTitle}\index{KPopupTitle@{KPopupTitle}}
{\bf KPopup\-Menu}{\rm (p.\,\pageref{classKPopupMenu})} title widget.  


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

Inheritance diagram for KPopup\-Title:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=53pt]{classKPopupTitle__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPopup\-Title:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=188pt]{classKPopupTitle__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Text} (const {\bf QString} \&text)
\item 
void {\bf set\-Icon} (const {\bf QPixmap} \&pix)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPopup\-Title} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KPopup\-Title} (KPixmap\-Effect::Gradient\-Type gradient, const {\bf QColor} \&color, const {\bf QColor} \&text\-Color, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0) KDE\_\-DEPRECATED
\item 
{\bf KPopup\-Title} (const {\bf KPixmap} \&background, const {\bf QColor} \&color, const {\bf QColor} \&text\-Color, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0) KDE\_\-DEPRECATED
\item 
void {\bf set\-Title} (const {\bf QString} \&text, const {\bf QPixmap} $\ast$icon=0)
\item 
{\bf QString} {\bf title} () const 
\item 
{\bf QPixmap} {\bf icon} () const 
\item 
{\bf QSize} {\bf size\-Hint} () const \label{classKPopupTitle_a6}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf calc\-Size} ()\label{classKPopupTitle_b0}

\item 
void {\bf paint\-Event} ({\bf QPaint\-Event} $\ast$ev)\label{classKPopupTitle_b1}

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

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
KPixmap\-Effect::Gradient\-Type {\bf gr\-Type}\label{classKPopupTitle_p0}

\item 
{\bf QString} {\bf title\-Str}\label{classKPopupTitle_p1}

\item 
{\bf KPixmap} {\bf fill}\label{classKPopupTitle_p2}

\item 
{\bf QPixmap} {\bf miniicon}\label{classKPopupTitle_p3}

\item 
{\bf QColor} {\bf fg\-Color}\label{classKPopupTitle_p4}

\item 
{\bf QColor} {\bf bg\-Color}\label{classKPopupTitle_p5}

\item 
{\bf QColor} {\bf gr\-High}\label{classKPopupTitle_p6}

\item 
{\bf QColor} {\bf gr\-Low}\label{classKPopupTitle_p7}

\item 
bool {\bf use\-Gradient}\label{classKPopupTitle_p8}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf KPopup\-Menu}{\rm (p.\,\pageref{classKPopupMenu})} title widget. 

Title widget for use in {\bf KPopup\-Menu}{\rm (p.\,\pageref{classKPopupMenu})}.

You usually don't have to create this manually since {\bf KPopup\-Menu::insert\-Title}{\rm (p.\,\pageref{classKPopupMenu_a2})} will do it for you, but it is allowed if you wish to customize it's look.

\begin{Desc}
\item[Author:]Daniel M. Duley $<${\tt mosfet@kde.org}$>$ \end{Desc}




Definition at line 38 of file kpopupmenu.h.

\subsection{Constructor \& Destructor Documentation}
\index{KPopupTitle@{KPopup\-Title}!KPopupTitle@{KPopupTitle}}
\index{KPopupTitle@{KPopupTitle}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPopup\-Title::KPopup\-Title ({\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKPopupTitle_a0}


Constructs a title widget with the user specified gradient, pixmap, and colors. 



Definition at line 30 of file kpopupmenu.cpp.

References QWidget::font\-Metrics(), QWidget::height(), and QWidget::set\-Minimum\-Size().\index{KPopupTitle@{KPopup\-Title}!KPopupTitle@{KPopupTitle}}
\index{KPopupTitle@{KPopupTitle}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPopup\-Title::KPopup\-Title (KPixmap\-Effect::Gradient\-Type {\em gradient}, const {\bf QColor} \& {\em color}, const {\bf QColor} \& {\em text\-Color}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKPopupTitle_a1}


\begin{Desc}
\item[{\bf Deprecated}]Constructs a title widget with the specified gradient and colors. \end{Desc}


Definition at line 36 of file kpopupmenu.cpp.\index{KPopupTitle@{KPopup\-Title}!KPopupTitle@{KPopupTitle}}
\index{KPopupTitle@{KPopupTitle}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPopup\-Title::KPopup\-Title (const {\bf KPixmap} \& {\em background}, const {\bf QColor} \& {\em color}, const {\bf QColor} \& {\em text\-Color}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKPopupTitle_a2}


\begin{Desc}
\item[{\bf Deprecated}]Constructs a title widget with the specified pixmap and colors. \end{Desc}


Definition at line 44 of file kpopupmenu.cpp.

\subsection{Member Function Documentation}
\index{KPopupTitle@{KPopup\-Title}!setTitle@{setTitle}}
\index{setTitle@{setTitle}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPopup\-Title::set\-Title (const {\bf QString} \& {\em text}, const {\bf QPixmap} $\ast$ {\em icon} = {\tt 0})}\label{classKPopupTitle_a3}


Sets the title string and optional icon for the title widget. 

You will want to call this before inserting into a menu. 

Definition at line 52 of file kpopupmenu.cpp.

References icon(), and QPixmap::resize().

Referenced by KPopup\-Menu::change\-Title(), KPopup\-Menu::insert\-Title(), and KPopup\-Menu::set\-Title().\index{KPopupTitle@{KPopup\-Title}!title@{title}}
\index{title@{title}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KPopup\-Title::title () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPopupTitle_a4}


Returns the current title. 



Definition at line 71 of file kpopupmenu.h.\index{KPopupTitle@{KPopup\-Title}!icon@{icon}}
\index{icon@{icon}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPixmap} KPopup\-Title::icon () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPopupTitle_a5}


Returns the current icon. 



Reimplemented from {\bf QWidget}.

Definition at line 75 of file kpopupmenu.h.

Referenced by set\-Title().\index{KPopupTitle@{KPopup\-Title}!setText@{setText}}
\index{setText@{setText}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPopup\-Title::set\-Text (const {\bf QString} \& {\em text})\hspace{0.3cm}{\tt  [slot]}}\label{classKPopupTitle_i0}


\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 63 of file kpopupmenu.cpp.\index{KPopupTitle@{KPopup\-Title}!setIcon@{setIcon}}
\index{setIcon@{setIcon}!KPopupTitle@{KPopup\-Title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPopup\-Title::set\-Icon (const {\bf QPixmap} \& {\em pix})\hspace{0.3cm}{\tt  [slot]}}\label{classKPopupTitle_i1}


\begin{Desc}
\item[Since:]3.1 \end{Desc}




Reimplemented from {\bf QWidget}.

Definition at line 69 of file kpopupmenu.cpp.

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