KDE PIM / Developers / API Docs / kalarm

RadioButton Class Reference

The RadioButton class is a QRadioButton with the ability to transfer focus to another widget when checked, and with a read-only option. QRadioButton with focus widget and read-only options. More...

#include <radiobutton.h>

Inherits QRadioButton.

List of all members.

Public Member Functions

Protected Slots

Protected Member Functions


Detailed Description

The RadioButton class is a QRadioButton with the ability to transfer focus to another widget when checked, and with a read-only option. QRadioButton with focus widget and read-only options.

Another widget may be specified as the focus widget for the radio button. Whenever the user clicks on the radio button so as to set its state to checked, focus is automatically transferred to the focus widget.

The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.

Author:
David Jarvie <software@astrojar.org.uk>


Constructor & Destructor Documentation

RadioButton::RadioButton QWidget *  parent,
const char *  name = 0
 

Constructor.

Parameters:
parent The parent object of this widget.
name The name of this widget.

RadioButton::RadioButton const QString &  text,
QWidget *  parent,
const char *  name = 0
 

Constructor.

Parameters:
text Text to display.
parent The parent object of this widget.
name The name of this widget.

Member Function Documentation

bool RadioButton::isReadOnly  )  const [inline]
 

Returns true if the widget is read only.

void RadioButton::setReadOnly bool  readOnly  ) 
 

Sets whether the radio button is read-only for the user.

If read-only, its state cannot be changed by the user.

Parameters:
readOnly True to set the widget read-only, false to set it read-write.

QWidget* RadioButton::focusWidget  )  const [inline]
 

Returns the widget which receives focus when the button is clicked.

void RadioButton::setFocusWidget QWidget *  widget,
bool  enable = true
 

Specifies a widget to receive focus when the button is clicked.

Parameters:
widget Widget to receive focus.
enable If true, widget will be enabled before receiving focus. If false, the enabled state of widget will be left unchanged when the radio button is clicked.

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