#include <kpopupmenu.h>
Inherits TQWidget.
Public Slots | |
void | setText (const TQString &text) |
void | setIcon (const TQPixmap &pix) |
Public Member Functions | |
KPopupTitle (TQWidget *parent=0, const char *name=0) | |
KPopupTitle (KPixmapEffect::GradientType gradient, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) KDE_DEPRECATED | |
KPopupTitle (const KPixmap &background, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) KDE_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
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() [1/3]
KPopupTitle::KPopupTitle | ( | TQWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Constructs a title widget with the user specified gradient, pixmap, and colors.
Definition at line 35 of file kpopupmenu.cpp.
◆ KPopupTitle() [2/3]
KPopupTitle::KPopupTitle | ( | 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 41 of file kpopupmenu.cpp.
◆ KPopupTitle() [3/3]
KPopupTitle::KPopupTitle | ( | 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 49 of file kpopupmenu.cpp.
Member Function Documentation
◆ icon()
|
inline |
Returns the current icon.
Definition at line 75 of file kpopupmenu.h.
◆ setIcon
|
slot |
- Since
- 3.1
Definition at line 74 of file kpopupmenu.cpp.
◆ setText
|
slot |
- Since
- 3.1
Definition at line 68 of file kpopupmenu.cpp.
◆ setTitle()
void KPopupTitle::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 57 of file kpopupmenu.cpp.
◆ title()
|
inline |
Returns the current title.
Definition at line 71 of file kpopupmenu.h.
The documentation for this class was generated from the following files: