libyui-qt
 
Loading...
Searching...
No Matches
YQPushButton Class Reference
Inheritance diagram for YQPushButton:
Collaboration diagram for YQPushButton:

Public Slots

void hit ()
 
- Public Slots inherited from YQGenericButton
void activate ()
 

Public Member Functions

 YQPushButton (YWidget *parent, const std::string &label)
 
virtual ~YQPushButton ()
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual void activate ()
 
- Public Member Functions inherited from YQGenericButton
virtual ~YQGenericButton ()
 
virtual void setEnabled (bool enabled)
 
bool isEnabled () const
 
void setLabel (const QString &label)
 
virtual void setLabel (const std::string &label)
 
void showAsDefault (bool show=true)
 
bool isShownAsDefault () const
 
virtual bool setKeyboardFocus ()
 
virtual void setIcon (const std::string &iconName)
 
QString text () const
 
QPushButton * qPushButton () const
 
YQDialogyQDialog () const
 
void setShortcut (const QKeySequence &key)
 

Additional Inherited Members

- Protected Member Functions inherited from YQGenericButton
 YQGenericButton (YWidget *parent, const std::string &label)
 
void setQPushButton (QPushButton *pb)
 
bool eventFilter (QObject *obj, QEvent *event)
 
YQDialogdialog ()
 
void forgetDialog ()
 

Constructor & Destructor Documentation

◆ YQPushButton()

YQPushButton::YQPushButton ( YWidget * parent,
const std::string & label )

Constructor.

◆ ~YQPushButton()

YQPushButton::~YQPushButton ( )
virtual

Destructor.

Member Function Documentation

◆ activate()

void YQPushButton::activate ( )
virtual

Activate the button. Can be used in tests to simulate user input.

◆ hit

void YQPushButton::hit ( )
slot

Triggered when the button is activated (clicked or via keyboard). Notifies the the ui about this.

◆ preferredHeight()

int YQPushButton::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQPushButton::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.


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