#include <YQGenericButton.h>
Inheritance diagram for YQGenericButton:
Public Slots | |
void | activate () |
Public Member Functions | |
virtual | ~YQGenericButton () |
void | setEnabling (bool enabled) |
bool | isEnabled () const |
void | setLabel (const QString &label) |
void | setLabel (const YCPString &label) |
void | showAsDefault (bool show=true) |
bool | isShownAsDefault () const |
bool | isDefault () const |
void | setDefault (bool def=true) |
virtual bool | setKeyboardFocus () |
virtual void | setIcon (const YCPString &icon_name) |
QString | text () const |
QPushButton * | qPushButton () const |
YQDialog * | yQDialog () const |
Protected Member Functions | |
YQGenericButton (QWidget *parent, YQDialog *dialog, const YWidgetOpt &opt, YCPString label) | |
void | setQPushButton (QPushButton *pb) |
bool | eventFilter (QObject *obj, QEvent *event) |
Private Attributes | |
YQDialog * | _dialog |
QPushButton * | _qPushButton |
bool | _isDefault |
|
Constructor. |
|
Destructor. |
|
Activate (animated) this button. |
|
Redirect events from the _qPushButton member to this object. Overwritten from QObject. |
|
Returns 'true' if this is the dialog's default button. Don't confuse this with isShownAsDefault()! |
|
Returns 'true' if this button is enabled, 'false' otherwise. |
|
Returns 'true' if this button is shown as a default button - which may mean that this really is the dialogs's default button or it is the dialog's focus button (a button that currently has the keyboard focus). Don't confuse this with isDefault()! |
|
Returns the internal Qt PushButton. |
|
Set this button's default button state. |
|
Inherited from YWidget: Sets the enabled state of the widget. Only enabled widgets can take user input. Reimplemented from YWidget. |
|
Set this button's icon. Inherited from YPushButton. Reimplemented from YPushButton. |
|
Accept the keyboard focus. Reimplemented from YWidget. |
|
Changes the label (the text) of the button. Reimplemented from YPushButton. |
|
Changes the label (the text) of the button. |
|
Set the corresponding QPushButton. |
|
Show this button as the dialog's default button. The button never calls this by itself - the parent dialog is responsible for that. |
|
Returns the button's text ( label ) - useful for log messages etc. |
|
Returns the internal parent dialog. |
|
|
|
|
|
|