class KPopupTitle

# class KPopupTitle | KPopupMenu title widget. More...
Definition | `#include <kpopupmenu.h>`
Inherits | QWidget (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KPopupTitle (QWidget *parent=0, const char *name=0)
- KPopupTitle (KPixmapEffect::GradientType gradient, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0)
- KPopupTitle (const KPixmap &background, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0)
- void setTitle (const QString &text, const QPixmap *icon=NULL)
- QString title () const
- QPixmap icon () const
- QSize sizeHint () const

#### Public Slots

- void setText ( const QString &text )
- void setIcon ( const QPixmap &pix )

#### Protected Methods

- void paintEvent (QPaintEvent *ev)
- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- KPixmapEffect::GradientType grType
- QString titleStr
- KPixmap fill
- QPixmap miniicon
- QColor fgColor
- QColor bgColor
- QColor grHigh
- QColor grLow
- bool useGradient

## Detailed Description

Title widget for use in KPopupMenu.

You usually don't have to create this manually since KPopupMenu::insertTitle will do it for you, but it is allowed if you wish to customize it's look.

KPopupTitle (QWidget *parent=0, const char *name=0) | ### KPopupTitle

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

KPopupTitle (KPixmapEffect::GradientType gradient, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0) | ### KPopupTitle

Constructs a title widget with the specified gradient and colors.

KPopupTitle (const KPixmap &background, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0) | ### KPopupTitle

Constructs a title widget with the specified pixmap and colors.

void setTitle (const QString &text, const QPixmap *icon=NULL) | ### setTitle

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

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

QString title () | ### title

[const]

Returns the current title.

QPixmap icon () | ### icon

[const]

Returns the current icon.

QSize sizeHint () | ### sizeHint

[const]

void setText ( const QString &text ) | ### setText

[slot]

void setIcon ( const QPixmap &pix ) | ### setIcon

[slot]

void paintEvent (QPaintEvent *ev) | ### paintEvent

[protected]

KPixmapEffect::GradientType grType | ### grType

[protected]

QString titleStr | ### titleStr

[protected]

KPixmap fill | ### fill

[protected]

QPixmap miniicon | ### miniicon

[protected]

QColor fgColor | ### fgColor

[protected]

QColor bgColor | ### bgColor

[protected]

QColor grHigh | ### grHigh

[protected]

QColor grLow | ### grLow

[protected]

bool useGradient | ### useGradient

[protected]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

- Author: Daniel M. Duley
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.