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;
A TQCheckBox with focus widget and read-only options.
CheckBox(TQWidget *parent, const char *name=0) Constructor.
void setFocusWidget(TQWidget *widget, bool enable=true) Specifies a widget to receive focus when the user selects the check box by clicking on it.
bool isReadOnly() const Returns true if the widget is read only.
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.
|