.TH "KPopupTitle" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KPopupTitle \- Title widget for use in \fBKPopupMenu\fP. \fBKPopupMenu\fP title widget.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kpopupmenu.h>\fP
.PP
Inherits \fBQWidget\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBsetText\fP (const  \fBQString\fP &text)"
.br
.RI "\fI\fBSince:\fP
.RS 4
3.1 
.RE
.PP
\fP"
.ti -1c
.RI "void \fBsetIcon\fP (const  \fBQPixmap\fP &pix)"
.br
.RI "\fI\fBSince:\fP
.RS 4
3.1 
.RE
.PP
\fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPopupTitle\fP (\fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a title widget with the user specified gradient, pixmap, and colors. \fP"
.ti -1c
.RI "\fBKPopupTitle\fP (KPixmapEffect::GradientType gradient, const  \fBQColor\fP &color, const  \fBQColor\fP &textColor, \fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a title widget with the specified gradient and colors. \fP"
.ti -1c
.RI "\fBKPopupTitle\fP (const  \fBKPixmap\fP &background, const  \fBQColor\fP &color, const  \fBQColor\fP &textColor, \fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a title widget with the specified pixmap and colors. \fP"
.ti -1c
.RI "void \fBsetTitle\fP (const  \fBQString\fP &text, const  \fBQPixmap\fP *icon=NULL)"
.br
.RI "\fISets the title string and optional icon for the title widget. \fP"
.ti -1c
.RI "\fBQString\fP \fBtitle\fP () const "
.br
.RI "\fIReturns the current title. \fP"
.ti -1c
.RI "\fBQPixmap\fP \fBicon\fP () const "
.br
.RI "\fIReturns the current icon. \fP"
.ti -1c
.RI "\fBQSize\fP \fBsizeHint\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBpaintEvent\fP (\fBQPaintEvent\fP *ev)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "KPixmapEffect::GradientType \fBgrType\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBtitleStr\fP"
.br
.ti -1c
.RI "\fBKPixmap\fP \fBfill\fP"
.br
.ti -1c
.RI "\fBQPixmap\fP \fBminiicon\fP"
.br
.ti -1c
.RI "\fBQColor\fP \fBfgColor\fP"
.br
.ti -1c
.RI "\fBQColor\fP \fBbgColor\fP"
.br
.ti -1c
.RI "\fBQColor\fP \fBgrHigh\fP"
.br
.ti -1c
.RI "\fBQColor\fP \fBgrLow\fP"
.br
.ti -1c
.RI "bool \fBuseGradient\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Title widget for use in \fBKPopupMenu\fP. \fBKPopupMenu\fP title widget. 

You usually don't have to create this manually since \fBKPopupMenu::insertTitle\fP will do it for you, but it is allowed if you wish to customize it's look.
.PP
\fBAuthor:\fP
.RS 4
Daniel M. Duley <mosfet@kde.org> 
.RE
.PP

.PP
Definition at line 37 of file kpopupmenu.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPopupTitle::KPopupTitle (\fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a title widget with the user specified gradient, pixmap, and colors. Definition at line 38 of file kpopupmenu.cpp.
.PP
References QWidget::colorGroup(), KGlobal::config(), QColor::dark(), KGlobal::dirs(), QWidget::fontMetrics(), QString::fromLatin1(), KConfigBase::group(), QWidget::height(), QString::isEmpty(), QPixmap::isNull(), QColor::light(), KPixmap::load(), KStdAccel::name(), KConfigBase::readColorEntry(), KConfigBase::readEntry(), KConfigBase::setGroup(), and QWidget::setMinimumSize().
.SS "KPopupTitle::KPopupTitle (KPixmapEffect::GradientType gradient, const \fBQColor\fP & color, const \fBQColor\fP & textColor, \fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a title widget with the specified gradient and colors. Definition at line 89 of file kpopupmenu.cpp.
.PP
References QColor::dark(), QWidget::fontMetrics(), QWidget::height(), QColor::light(), KStdAccel::name(), and QWidget::setMinimumSize().
.SS "KPopupTitle::KPopupTitle (const \fBKPixmap\fP & background, const \fBQColor\fP & color, const \fBQColor\fP & textColor, \fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a title widget with the specified pixmap and colors. Definition at line 103 of file kpopupmenu.cpp.
.PP
References QColor::dark(), QWidget::fontMetrics(), QWidget::height(), QPixmap::isNull(), QColor::light(), KStdAccel::name(), and QWidget::setMinimumSize().
.SH "Member Function Documentation"
.PP 
.SS "void KPopupTitle::setTitle (const \fBQString\fP & text, const \fBQPixmap\fP * icon = NULL)"
.PP
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.
.PP
References QWidget::fontMetrics(), QPixmap::height(), QWidget::height(), QPixmap::resize(), QWidget::setMinimumSize(), and QPixmap::width().
.PP
Referenced by KPopupMenu::insertTitle(), and KPopupMenu::setTitle().
.SS "\fBQString\fP KPopupTitle::title () const\fC [inline]\fP"
.PP
Returns the current title. Definition at line 68 of file kpopupmenu.h.
.SS "\fBQPixmap\fP KPopupTitle::icon () const\fC [inline]\fP"
.PP
Returns the current icon. Reimplemented from \fBQWidget\fP.
.PP
Definition at line 72 of file kpopupmenu.h.
.SS "void KPopupTitle::setText (const \fBQString\fP & text)\fC [slot]\fP"
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 135 of file kpopupmenu.cpp.
.PP
References QWidget::fontMetrics(), QPixmap::height(), QWidget::height(), QWidget::setMinimumSize(), and QPixmap::width().
.SS "void KPopupTitle::setIcon (const \fBQPixmap\fP & pix)\fC [slot]\fP"
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 143 of file kpopupmenu.cpp.
.PP
References QWidget::fontMetrics(), QPixmap::height(), QWidget::height(), QWidget::setMinimumSize(), and QPixmap::width().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
