\section{KPopup\-Title Class Reference}
\label{classKPopupTitle}\index{KPopupTitle@{KPopupTitle}}
Title widget for use in {\bf KPopup\-Menu}{\rm (p.\,\pageref{classKPopupMenu})}. {\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=54pt]{classKPopupTitle__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPopup\-Title:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=208pt]{classKPopupTitle__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Text} (const  {\bf QString} \&text)
\begin{CompactList}\small\item\em \begin{Desc}
\item[Since:]3.1 \end{Desc}
\item\end{CompactList}\item 
void {\bf set\-Icon} (const  {\bf QPixmap} \&pix)
\begin{CompactList}\small\item\em \begin{Desc}
\item[Since:]3.1 \end{Desc}
\item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPopup\-Title} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs a title widget with the user specified gradient, pixmap, and colors. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Constructs a title widget with the specified gradient and colors. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Constructs a title widget with the specified pixmap and colors. \item\end{CompactList}\item 
void {\bf set\-Title} (const  {\bf QString} \&text, const  {\bf QPixmap} $\ast$icon=NULL)
\begin{CompactList}\small\item\em Sets the title string and optional icon for the title widget. \item\end{CompactList}\item 
{\bf QString} {\bf title} () const 
\begin{CompactList}\small\item\em Returns the current title. \item\end{CompactList}\item 
{\bf QPixmap} {\bf icon} () const 
\begin{CompactList}\small\item\em Returns the current icon. \item\end{CompactList}\item 
{\bf QSize} {\bf size\-Hint} () const \label{classKPopupTitle_a6}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf paint\-Event} ({\bf QPaint\-Event} $\ast$ev)\label{classKPopupTitle_b0}

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

\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}
Title widget for use in {\bf KPopup\-Menu}{\rm (p.\,\pageref{classKPopupMenu})}. {\bf KPopup\-Menu}{\rm (p.\,\pageref{classKPopupMenu})} title widget. 

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 37 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} = 0, const char $\ast$ {\em name} = 0)}\label{classKPopupTitle_a0}


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



Definition at line 38 of file kpopupmenu.cpp.

References QWidget::color\-Group(), KGlobal::config(), QColor::dark(), KGlobal::dirs(), QWidget::font\-Metrics(), QString::from\-Latin1(), KConfig\-Base::group(), QWidget::height(), QString::is\-Empty(), QPixmap::is\-Null(), QColor::light(), KPixmap::load(), KStd\-Accel::name(), KConfig\-Base::read\-Color\-Entry(), KConfig\-Base::read\-Entry(), KConfig\-Base::set\-Group(), 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} = 0, const char $\ast$ {\em name} = 0)}\label{classKPopupTitle_a1}


Constructs a title widget with the specified gradient and colors. 



Definition at line 89 of file kpopupmenu.cpp.

References QColor::dark(), QWidget::font\-Metrics(), QWidget::height(), QColor::light(), KStd\-Accel::name(), 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 (const {\bf KPixmap} \& {\em background}, const {\bf QColor} \& {\em color}, const {\bf QColor} \& {\em text\-Color}, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKPopupTitle_a2}


Constructs a title widget with the specified pixmap and colors. 



Definition at line 103 of file kpopupmenu.cpp.

References QColor::dark(), QWidget::font\-Metrics(), QWidget::height(), QPixmap::is\-Null(), QColor::light(), KStd\-Accel::name(), and QWidget::set\-Minimum\-Size().

\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} = NULL)}\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 121 of file kpopupmenu.cpp.

References QWidget::font\-Metrics(), QPixmap::height(), QWidget::height(), QPixmap::resize(), QWidget::set\-Minimum\-Size(), and QPixmap::width().

Referenced by 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 68 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 72 of file kpopupmenu.h.\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 135 of file kpopupmenu.cpp.

References QWidget::font\-Metrics(), QPixmap::height(), QWidget::height(), QWidget::set\-Minimum\-Size(), and QPixmap::width().\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 143 of file kpopupmenu.cpp.

References QWidget::font\-Metrics(), QPixmap::height(), QWidget::height(), QWidget::set\-Minimum\-Size(), and QPixmap::width().

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