#include <QToggleButton.h>
Public Member Functions | |
| QToggleButton (QWidget *parent=0, const char *name=0) | |
| QToggleButton (const char *text1, const char *text2, QWidget *parent=0, const char *name=0) | |
| ~QToggleButton () | |
| void | setText (const QString &) |
| void | setPixmap (const QPixmap &) |
| void | setText (const QString &up_text, const QString &down_text="") |
| void | setPixmap (const QPixmap &up_pixmap, const QPixmap &down_pixmap) |
Private Slots | |
| void | togglePixmap (bool on) |
Private Attributes | |
| QString | toggled_btext |
| QPixmap * | toggled_bpixmap |
This class implements a togglebutton with two different strings or pixmaps which will be exchanged when the button is toggled.
|
||||||||||||
|
Default constructor. |
|
||||||||||||||||||||
|
The same as above but you can also pass the textes with it. |
|
|
Default destructor. |
|
||||||||||||
|
Sets the pixmap which is shown when pressed or raised. |
|
|
|
|
||||||||||||
|
Sets the text which is shown when pressed or raised. |
|
|
|
|
|
|
|
|
|
|
|
|
1.3-rc3