KDE PIM / Developers / API Docs / kalarm

CheckBox Class Reference

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

#include <checkbox.h>

Inherits QCheckBox.

List of all members.

Public Member Functions

Protected Slots

Protected Member Functions


Detailed Description

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

Another widget may be specified as the focus widget for the check box. Whenever the user clicks on the check box 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

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

Constructor.

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

CheckBox::CheckBox 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 CheckBox::isReadOnly  )  const [inline]
 

Returns true if the widget is read only.

void CheckBox::setReadOnly bool  readOnly  ) 
 

Sets whether the check box 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* CheckBox::focusWidget  )  const [inline]
 

Returns the widget which receives focus when the user selects the check box by clicking on it.

void CheckBox::setFocusWidget QWidget *  ,
bool  enable = true
 

Specifies a widget to receive focus when the user selects the check box by clicking on it.

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 check box is clicked.

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