kalarm/lib
RadioButton Class Reference
#include <radiobutton.h>
Detailed Description
A QRadioButton with focus widget and read-only options.The RadioButton class is a QRadioButton with the ability to transfer focus to another widget when checked, and with a read-only option.
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>
Definition at line 42 of file radiobutton.h.
Public Member Functions | |
RadioButton (QWidget *parent, const char *name=0) | |
RadioButton (const QString &text, QWidget *parent, const char *name=0) | |
bool | isReadOnly () const |
virtual void | setReadOnly (bool readOnly) |
QWidget * | focusWidget () const |
void | setFocusWidget (QWidget *widget, bool enable=true) |
Protected Slots | |
void | slotClicked () |
Protected Member Functions | |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | keyReleaseEvent (QKeyEvent *) |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 24 of file radiobutton.cpp. |
|
Constructor.
Definition at line 31 of file radiobutton.cpp. |
Member Function Documentation
|
Returns the widget which receives focus when the button is clicked.
Definition at line 65 of file radiobutton.h. |
|
Returns true if the widget is read only.
Definition at line 58 of file radiobutton.h. |
|
Specifies a widget to receive focus when the button is clicked.
Definition at line 56 of file radiobutton.cpp. |
|
Sets whether the radio button is read-only for the user. If read-only, its state cannot be changed by the user.
Definition at line 42 of file radiobutton.cpp. |
The documentation for this class was generated from the following files: