lib
KoToolButton Class Reference
Inheritance diagram for KoToolButton:

Detailed Description
Definition at line 128 of file KoTooluButton.h.
Public Slots | |
void | colorSelected (const QColor &color) |
Public Member Functions | |
KoToolButton (const QString &icon, int id, QWidget *parent, const char *name=0L, const QString &txt=QString::null, KInstance *_instance=KGlobal::instance()) | |
KoToolButton (const QPixmap &pixmap, int id, QWidget *parent, const char *name=0L, const QString &txt=QString::null) | |
virtual | ~KoToolButton () |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
virtual QSize | minimumSize () const |
Protected Member Functions | |
virtual void | drawButton (QPainter *p) |
virtual bool | eventFilter (QObject *o, QEvent *e) |
Constructor & Destructor Documentation
KoToolButton::KoToolButton | ( | const QString & | icon, | |
int | id, | |||
QWidget * | parent, | |||
const char * | name = 0L , |
|||
const QString & | txt = QString::null , |
|||
KInstance * | _instance = KGlobal::instance() | |||
) |
Construct a button with an icon loaded by the button itself.
This will trust the button to load the correct icon with the correct size.
- Parameters:
-
icon Name of icon to load (may be absolute or relative) id Id of this button parent This button's parent name This button's internal name txt This button's text (in a tooltip or otherwise)
Definition at line 648 of file KoTooluButton.cpp.
KoToolButton::KoToolButton | ( | const QPixmap & | pixmap, | |
int | id, | |||
QWidget * | parent, | |||
const char * | name = 0L , |
|||
const QString & | txt = QString::null | |||
) |
Construct a button with an existing pixmap.
It is not recommended that you use this as the internal icon loading code will almost always get it "right".
- Parameters:
-
icon Name of icon to load (may be absolute or relative) id Id of this button parent This button's parent name This button's internal name txt This button's text (in a tooltip or otherwise)
Definition at line 655 of file KoTooluButton.cpp.
The documentation for this class was generated from the following files: