Inheritance diagram for QwtPushButton:
Public Member Functions | |
QwtPushButton (QWidget *=NULL, const char *name=NULL) | |
QwtPushButton (const QString &text, QWidget *=NULL, const char *name=NULL) | |
QwtPushButton (const QIconSet &, const QString &, QWidget *=NULL, const char *name=NULL) | |
TextFormat | textFormat () const |
void | setTextFormat (TextFormat) |
virtual Qt::TextFormat | usedTextFormat () const |
int | alignment () const |
virtual void | setAlignment (int alignment) |
void | setIndent (int) |
int | indent () const |
virtual QSize | sizeHint () const |
virtual int | heightForWidth (int) const |
Protected Member Functions | |
virtual void | drawButtonLabel (QPainter *) |
|
Constructs a push button with no text. |
|
Constructs a push button called name with the parent parent and the text text. |
|
Constructs a push button with an icon and a text. |
|
|
|
Draws the button text or pixmap.
|
|
Find the preferred height, given the width w.
|
|
|
|
Sets the alignment of the button labelīs contents. The default format is Qt::AlignCenter | Qt::ExpandTabs | Qt::WordBreak.
|
|
Sets the button label's contents indent in pixels. The default value is 4 pixels.
|
|
Sets the button label's text format. The default format is AutoText.
|
|
Return sizeHint.
|
|
|
|
Find the text format that is used for painting the button label. In case of Qt::AutoText the format is found by evaluating text(), otherwise it is textFormat()
|