.TH "KPopupTitle" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KPopupTitle \- \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
.ti -1c
.RI "void \fBsetIcon\fP (const \fBQPixmap\fP &pix)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPopupTitle\fP (\fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fBKPopupTitle\fP (KPixmapEffect::GradientType gradient, const \fBQColor\fP &color, const \fBQColor\fP &textColor, \fBQWidget\fP *parent=0, const char *name=0) KDE_DEPRECATED"
.br
.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) KDE_DEPRECATED"
.br
.ti -1c
.RI "void \fBsetTitle\fP (const \fBQString\fP &text, const \fBQPixmap\fP *icon=0)"
.br
.ti -1c
.RI "\fBQString\fP \fBtitle\fP () const "
.br
.ti -1c
.RI "\fBQPixmap\fP \fBicon\fP () const "
.br
.ti -1c
.RI "\fBQSize\fP \fBsizeHint\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBcalcSize\fP ()"
.br
.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 
\fBKPopupMenu\fP title widget. 

Title widget for use in \fBKPopupMenu\fP.
.PP
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 38 of file kpopupmenu.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPopupTitle::KPopupTitle (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs a title widget with the user specified gradient, pixmap, and colors. 
.PP
Definition at line 30 of file kpopupmenu.cpp.
.PP
References QWidget::fontMetrics(), QWidget::height(), and QWidget::setMinimumSize().
.SS "KPopupTitle::KPopupTitle (KPixmapEffect::GradientType gradient, const \fBQColor\fP & color, const \fBQColor\fP & textColor, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
\fBDeprecated\fP
.RS 4
Constructs a title widget with the specified gradient and colors. 
.RE
.PP

.PP
Definition at line 36 of file kpopupmenu.cpp.
.SS "KPopupTitle::KPopupTitle (const \fBKPixmap\fP & background, const \fBQColor\fP & color, const \fBQColor\fP & textColor, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
\fBDeprecated\fP
.RS 4
Constructs a title widget with the specified pixmap and colors. 
.RE
.PP

.PP
Definition at line 44 of file kpopupmenu.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KPopupTitle::setTitle (const \fBQString\fP & text, const \fBQPixmap\fP * icon = \fC0\fP)"
.PP
Sets the title string and optional icon for the title widget. 
.PP
You will want to call this before inserting into a menu. 
.PP
Definition at line 52 of file kpopupmenu.cpp.
.PP
References icon(), and QPixmap::resize().
.PP
Referenced by KPopupMenu::changeTitle(), KPopupMenu::insertTitle(), and KPopupMenu::setTitle().
.SS "\fBQString\fP KPopupTitle::title () const\fC [inline]\fP"
.PP
Returns the current title. 
.PP
Definition at line 71 of file kpopupmenu.h.
.SS "\fBQPixmap\fP KPopupTitle::icon () const\fC [inline]\fP"
.PP
Returns the current icon. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 75 of file kpopupmenu.h.
.PP
Referenced by setTitle().
.SS "void KPopupTitle::setText (const \fBQString\fP & text)\fC [slot]\fP"
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 63 of file kpopupmenu.cpp.
.SS "void KPopupTitle::setIcon (const \fBQPixmap\fP & pix)\fC [slot]\fP"
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 69 of file kpopupmenu.cpp.

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