kalarm/lib
#include <checkbox.h>
Public Member Functions | |
CheckBox (QWidget *parent) | |
CheckBox (const QString &text, QWidget *parent) | |
QWidget * | focusWidget () const |
bool | isReadOnly () const |
void | setFocusWidget (QWidget *widget, bool enable=true) |
virtual void | setReadOnly (bool readOnly) |
Protected Slots | |
void | slotClicked () |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | keyReleaseEvent (QKeyEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
Detailed Description
A QCheckBox with focus widget and read-only options.
The CheckBox class is a QCheckBox 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 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.
Definition at line 44 of file checkbox.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
parent The parent object of this widget.
Definition at line 26 of file checkbox.cpp.
CheckBox::CheckBox | ( | const QString & | text, |
QWidget * | parent | ||
) |
Constructor.
- Parameters
-
text Text to display. parent The parent object of this widget.
Definition at line 33 of file checkbox.cpp.
Member Function Documentation
|
inline |
Returns the widget which receives focus when the user selects the check box by clicking on it.
Definition at line 65 of file checkbox.h.
|
inline |
Returns true if the widget is read only.
Definition at line 58 of file checkbox.h.
|
protectedvirtual |
Definition at line 114 of file checkbox.cpp.
|
protectedvirtual |
Definition at line 133 of file checkbox.cpp.
|
protectedvirtual |
Definition at line 108 of file checkbox.cpp.
|
protectedvirtual |
Definition at line 86 of file checkbox.cpp.
|
protectedvirtual |
Definition at line 97 of file checkbox.cpp.
void CheckBox::setFocusWidget | ( | QWidget * | widget, |
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 ofwidget
will be left unchanged when the check box is clicked.
Definition at line 58 of file checkbox.cpp.
|
virtual |
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.
Definition at line 44 of file checkbox.cpp.
|
protectedslot |
Definition at line 72 of file checkbox.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.