#include <tdepopupmenu.h>
Inherits TQWidget.
|
| void | setText (const TQString &text) |
| |
| void | setIcon (const TQPixmap &pix) |
| |
|
| | TDEPopupTitle (TQWidget *parent=0, const char *name=0) |
| |
| | TDEPopupTitle (KPixmapEffect::GradientType gradient, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) TDE_DEPRECATED |
| |
| | TDEPopupTitle (const KPixmap &background, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) TDE_DEPRECATED |
| |
| void | setTitle (const TQString &text, const TQPixmap *icon=0) |
| |
| TQString | title () const |
| |
| TQPixmap | icon () const |
| |
| TQSize | sizeHint () const |
| |
TDEPopupMenu title widget.
Title widget for use in TDEPopupMenu.
You usually don't have to create this manually since TDEPopupMenu::insertTitle will do it for you, but it is allowed if you wish to customize it's look.
- Author
- Daniel M. Duley mosfe.nosp@m.t@kd.nosp@m.e.org
Definition at line 38 of file tdepopupmenu.h.
◆ TDEPopupTitle() [1/3]
| TDEPopupTitle::TDEPopupTitle |
( |
TQWidget * |
parent = 0, |
|
|
const char * |
name = 0 |
|
) |
| |
Constructs a title widget with the user specified gradient, pixmap, and colors.
Definition at line 31 of file tdepopupmenu.cpp.
◆ TDEPopupTitle() [2/3]
| TDEPopupTitle::TDEPopupTitle |
( |
KPixmapEffect::GradientType |
gradient, |
|
|
const TQColor & |
color, |
|
|
const TQColor & |
textColor, |
|
|
TQWidget * |
parent = 0, |
|
|
const char * |
name = 0 |
|
) |
| |
◆ TDEPopupTitle() [3/3]
| TDEPopupTitle::TDEPopupTitle |
( |
const KPixmap & |
background, |
|
|
const TQColor & |
color, |
|
|
const TQColor & |
textColor, |
|
|
TQWidget * |
parent = 0, |
|
|
const char * |
name = 0 |
|
) |
| |
◆ calcSize()
| void TDEPopupTitle::calcSize |
( |
| ) |
|
|
protected |
◆ icon()
| TQPixmap TDEPopupTitle::icon |
( |
| ) |
const |
|
inline |
◆ paintEvent()
| void TDEPopupTitle::paintEvent |
( |
TQPaintEvent * |
ev | ) |
|
|
protected |
◆ setIcon
| void TDEPopupTitle::setIcon |
( |
const TQPixmap & |
pix | ) |
|
|
slot |
◆ setText
| void TDEPopupTitle::setText |
( |
const TQString & |
text | ) |
|
|
slot |
◆ setTitle()
| void TDEPopupTitle::setTitle |
( |
const TQString & |
text, |
|
|
const TQPixmap * |
icon = 0 |
|
) |
| |
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 53 of file tdepopupmenu.cpp.
◆ sizeHint()
| TQSize TDEPopupTitle::sizeHint |
( |
void |
| ) |
const |
◆ title()
| TQString TDEPopupTitle::title |
( |
| ) |
const |
|
inline |
◆ virtual_hook()
| void TDEPopupTitle::virtual_hook |
( |
int |
id, |
|
|
void * |
data |
|
) |
| |
|
protectedvirtual |
◆ bgColor
| TQColor TDEPopupTitle::bgColor |
|
protected |
◆ fgColor
| TQColor TDEPopupTitle::fgColor |
|
protected |
◆ fill
◆ grHigh
| TQColor TDEPopupTitle::grHigh |
|
protected |
◆ grLow
| TQColor TDEPopupTitle::grLow |
|
protected |
◆ grType
| KPixmapEffect::GradientType TDEPopupTitle::grType |
|
protected |
◆ miniicon
| TQPixmap TDEPopupTitle::miniicon |
|
protected |
◆ titleStr
| TQString TDEPopupTitle::titleStr |
|
protected |
◆ useGradient
| bool TDEPopupTitle::useGradient |
|
protected |
The documentation for this class was generated from the following files: