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

Public Member Functions

 YQRadioButton (YWidget *parent, const std::string &label, bool checked)
 
virtual bool value ()
 
virtual void setValue (bool checked)
 
virtual void setLabel (const std::string &label)
 
virtual void setUseBoldFont (bool bold=true)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Slots

void changed (bool newState)
 
bool eventFilter (QObject *obj, QEvent *event)
 

Constructor & Destructor Documentation

◆ YQRadioButton()

YQRadioButton::YQRadioButton ( YWidget *  parent,
const std::string &  label,
bool  checked 
)

Constructor.

Member Function Documentation

◆ changed

void YQRadioButton::changed ( bool  newState)
protectedslot

Triggered when the RadioButton is toggled.

◆ eventFilter

bool YQRadioButton::eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedslot

Redirect events to this object.

◆ preferredHeight()

int YQRadioButton::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQRadioButton::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setEnabled()

void YQRadioButton::setEnabled ( bool  enabled)
virtual

Set enabled / disabled state.

Reimplemented from YWidget.

◆ setKeyboardFocus()

bool YQRadioButton::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

◆ setLabel()

void YQRadioButton::setLabel ( const std::string &  label)
virtual

Change the label (the text) on the RadioButton.

Reimplemented from YRadioButton.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

◆ setUseBoldFont()

void YQRadioButton::setUseBoldFont ( bool  bold = true)
virtual

Use a bold font.

Reimplemented from YRadioButton.

◆ setValue()

void YQRadioButton::setValue ( bool  checked)
virtual

Set the "checked" state of the RadioButton.

Reimplemented from YRadioButton.

◆ value()

bool YQRadioButton::value ( )
virtual

Return the "checked" state of the RadioButton.

Reimplemented from YRadioButton.


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