#include <tdepopupmenu.h>
Inherits TQWidget.
Public Slots | |
void | setText (const TQString &text) |
void | setIcon (const TQPixmap &pix) |
Public Member Functions | |
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 |
Protected Member Functions | |
void | calcSize () |
void | paintEvent (TQPaintEvent *ev) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
KPixmapEffect::GradientType | grType |
TQString | titleStr |
KPixmap | fill |
TQPixmap | miniicon |
TQColor | fgColor |
TQColor | bgColor |
TQColor | grHigh |
TQColor | grLow |
bool | useGradient |
Detailed Description
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.
Definition at line 38 of file tdepopupmenu.h.
Constructor & Destructor Documentation
◆ 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 |
||
) |
- Deprecated:
- Constructs a title widget with the specified gradient and colors.
Definition at line 37 of file tdepopupmenu.cpp.
◆ TDEPopupTitle() [3/3]
TDEPopupTitle::TDEPopupTitle | ( | const KPixmap & | background, |
const TQColor & | color, | ||
const TQColor & | textColor, | ||
TQWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
- Deprecated:
- Constructs a title widget with the specified pixmap and colors.
Definition at line 45 of file tdepopupmenu.cpp.
Member Function Documentation
◆ icon()
|
inline |
Returns the current icon.
Definition at line 75 of file tdepopupmenu.h.
◆ setIcon
|
slot |
- Since
- 3.1
Definition at line 70 of file tdepopupmenu.cpp.
◆ setText
|
slot |
- Since
- 3.1
Definition at line 64 of file tdepopupmenu.cpp.
◆ 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.
◆ title()
|
inline |
Returns the current title.
Definition at line 71 of file tdepopupmenu.h.
The documentation for this class was generated from the following files: