libyui-qt  2.46.13
YQWizardButton Class Reference
Inheritance diagram for YQWizardButton:
Collaboration diagram for YQWizardButton:

Signals

void clicked ()
 Emitted when the button is clicked or otherwise activated.
 

Public Member Functions

 YQWizardButton (YQWizard *wizard, QWidget *buttonParent, const std::string &label)
 Constructor.
 
virtual ~YQWizardButton ()
 Destructor.
 
virtual const char * widgetClass () const
 Returns a descriptive name of this widget class for logging, debugging etc.
 
void hide ()
 Hide the associated QPushButton.
 
void show ()
 Show the associated QPushButton - not this widget itself (!). More...
 
bool isShown () const
 Returns 'true' if the associated QPushButton (!) is shown.
 
bool isHidden () const
 Returns 'true' if the associated QPushButton (!) is hidden.
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
YQWizardwizard () const
 Returns the wizard this wizard button belongs to.
 
- Public Member Functions inherited from YQGenericButton
virtual ~YQGenericButton ()
 Destructor.
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
bool isEnabled () const
 Returns 'true' if this button is enabled, 'false' otherwise.
 
void setLabel (const QString &label)
 Changes the label (the text) of the button.
 
virtual void setLabel (const std::string &label)
 Changes the label (the text) of the button. More...
 
void showAsDefault (bool show=true)
 Show this button as the dialog's default button. More...
 
bool isShownAsDefault () const
 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). More...
 
virtual bool setKeyboardFocus ()
 Accept the keyboard focus.
 
virtual void setIcon (const std::string &iconName)
 Set this button's icon. More...
 
QString text () const
 Returns the button's text (label) - useful for log messages etc.
 
QPushButton * qPushButton () const
 Returns the internal Qt PushButton.
 
YQDialogyQDialog () const
 Returns the internal parent dialog.
 

Additional Inherited Members

- Public Slots inherited from YQGenericButton
void activate ()
 Activate (animated) this button.
 
- Protected Member Functions inherited from YQGenericButton
 YQGenericButton (YWidget *parent, const std::string &label)
 Constructor.
 
void setQPushButton (QPushButton *pb)
 Set the corresponding QPushButton.
 
bool eventFilter (QObject *obj, QEvent *event)
 Redirect events from the _qPushButton member to this object. More...
 
YQDialogdialog ()
 Returns the corresponding YQDialog. More...
 
void forgetDialog ()
 

Detailed Description

Definition at line 37 of file YQWizardButton.h.

Member Function Documentation

int YQWizardButton::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 104 of file YQWizardButton.cc.

int YQWizardButton::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 95 of file YQWizardButton.cc.

void YQWizardButton::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 113 of file YQWizardButton.cc.

void YQWizardButton::show ( )

Show the associated QPushButton - not this widget itself (!).

This widget itself will never become visible.

Definition at line 73 of file YQWizardButton.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following files: