kdeui
KPopupTitle Class Reference
KPopupMenu title widget. More...
#include <kpopupmenu.h>
Public Slots | |
void | setIcon (const QPixmap &pix) |
void | setText (const QString &text) |
Public Member Functions | |
QPixmap | icon () const |
KPopupTitle (const KPixmap &background, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0) KDE_DEPRECATED | |
KPopupTitle (KPixmapEffect::GradientType gradient, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0) KDE_DEPRECATED | |
KPopupTitle (QWidget *parent=0, const char *name=0) | |
void | setTitle (const QString &text, const QPixmap *icon=0) |
QSize | sizeHint () const |
QString | title () const |
Protected Member Functions | |
void | calcSize () |
void | paintEvent (QPaintEvent *ev) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
QColor | bgColor |
QColor | fgColor |
KPixmap | fill |
QColor | grHigh |
QColor | grLow |
KPixmapEffect::GradientType | grType |
QPixmap | miniicon |
QString | titleStr |
bool | useGradient |
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.
Definition at line 38 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.
Definition at line 30 of file kpopupmenu.cpp.
KPopupTitle::KPopupTitle | ( | KPixmapEffect::GradientType | gradient, | |
const QColor & | color, | |||
const QColor & | textColor, | |||
QWidget * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
- Deprecated:
- Constructs a title widget with the specified gradient and colors.
Definition at line 36 of file kpopupmenu.cpp.
KPopupTitle::KPopupTitle | ( | const KPixmap & | background, | |
const QColor & | color, | |||
const QColor & | textColor, | |||
QWidget * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
- Deprecated:
- Constructs a title widget with the specified pixmap and colors.
Definition at line 44 of file kpopupmenu.cpp.
Member Function Documentation
void KPopupTitle::calcSize | ( | ) | [protected] |
Definition at line 75 of file kpopupmenu.cpp.
QPixmap KPopupTitle::icon | ( | ) | const [inline] |
void KPopupTitle::paintEvent | ( | QPaintEvent * | ev | ) | [protected] |
void KPopupTitle::setIcon | ( | const QPixmap & | pix | ) | [slot] |
void KPopupTitle::setText | ( | const QString & | text | ) | [slot] |
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 52 of file kpopupmenu.cpp.
QSize KPopupTitle::sizeHint | ( | void | ) | const |
QString KPopupTitle::title | ( | ) | const [inline] |
void KPopupTitle::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
Definition at line 683 of file kpopupmenu.cpp.
Member Data Documentation
QColor KPopupTitle::bgColor [protected] |
Definition at line 95 of file kpopupmenu.h.
QColor KPopupTitle::fgColor [protected] |
Definition at line 95 of file kpopupmenu.h.
KPixmap KPopupTitle::fill [protected] |
Definition at line 93 of file kpopupmenu.h.
QColor KPopupTitle::grHigh [protected] |
Definition at line 95 of file kpopupmenu.h.
QColor KPopupTitle::grLow [protected] |
Definition at line 95 of file kpopupmenu.h.
KPixmapEffect::GradientType KPopupTitle::grType [protected] |
Definition at line 90 of file kpopupmenu.h.
QPixmap KPopupTitle::miniicon [protected] |
Definition at line 94 of file kpopupmenu.h.
QString KPopupTitle::titleStr [protected] |
Definition at line 91 of file kpopupmenu.h.
bool KPopupTitle::useGradient [protected] |
Definition at line 96 of file kpopupmenu.h.
The documentation for this class was generated from the following files: