Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KPopupTitle Class Reference

KPopupMenu title widget. More...

#include <kpopupmenu.h>

List of all members.

Public Slots

void setText (const QString &text)
 
Since:
3.1


void setIcon (const QPixmap &pix)
 
Since:
3.1



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


Detailed Description

KPopupMenu title widget.

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.

Author:
Daniel M. Duley <mosfet@kde.org>

Definition at line 37 of file kpopupmenu.h.


Constructor & Destructor Documentation

KPopupTitle::KPopupTitle QWidget *    parent = 0,
const char *    name = 0
 

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

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

Constructs a title widget with the specified gradient and colors.

KPopupTitle::KPopupTitle const KPixmap   background,
const QColor &    color,
const QColor &    textColor,
QWidget *    parent = 0,
const char *    name = 0
 

Constructs a title widget with the specified pixmap and colors.


Member Function Documentation

QPixmap KPopupTitle::icon   const [inline]
 

Returns the current icon.

Definition at line 72 of file kpopupmenu.h.

void KPopupTitle::setTitle const QString &    text,
const QPixmap *    icon = NULL
 

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

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

QString KPopupTitle::title   const [inline]
 

Returns the current title.

Definition at line 68 of file kpopupmenu.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:20 2003 for kdelibs by doxygen1.2.18