24 #include <tqcheckbox.h>
51 explicit CheckBox(TQWidget* parent,
const char* name = 0);
57 CheckBox(
const TQString& text, TQWidget* parent,
const char* name = 0);
75 virtual void mousePressEvent(TQMouseEvent*);
76 virtual void mouseReleaseEvent(TQMouseEvent*);
77 virtual void mouseMoveEvent(TQMouseEvent*);
78 virtual void keyPressEvent(TQKeyEvent*);
79 virtual void keyReleaseEvent(TQKeyEvent*);
83 TQWidget::FocusPolicy mFocusPolicy;
84 TQWidget* mFocusWidget;
85 bool mFocusWidgetEnable;
void setFocusWidget(TQWidget *widget, bool enable=true)
Specifies a widget to receive focus when the user selects the check box by clicking on it.
TQWidget * focusWidget() const
Returns the widget which receives focus when the user selects the check box by clicking on it.
virtual void setReadOnly(bool readOnly)
Sets whether the check box is read-only for the user.
bool isReadOnly() const
Returns true if the widget is read only.
A TQCheckBox with focus widget and read-only options.
CheckBox(TQWidget *parent, const char *name=0)
Constructor.