25 : TQSlider(parent, name),
30 : TQSlider(o, parent, name),
34 Slider::Slider( int minval, int maxval, int pageStep, int value, TQt::Orientation o, TQWidget* parent, const char* name)
35 : TQSlider(minval, maxval, pageStep, value, o, parent, name),
52 void Slider::mousePressEvent(TQMouseEvent* e)
57 if (e->button() == TQt::LeftButton)
60 TQSlider::mousePressEvent(e);
63 void Slider::mouseReleaseEvent(TQMouseEvent* e)
66 TQSlider::mouseReleaseEvent(e);
69 void Slider::mouseMoveEvent(TQMouseEvent* e)
72 TQSlider::mouseMoveEvent(e);
75 void Slider::keyPressEvent(TQKeyEvent* e)
77 if (!mReadOnly || e->key() == TQt::Key_Escape)
78 TQSlider::keyPressEvent(e);
81 void Slider::keyReleaseEvent(TQKeyEvent* e)
84 TQSlider::keyReleaseEvent(e);
virtual void setReadOnly(bool readOnly) Sets whether the slider is read-only for the user.
Slider(TQWidget *parent=0, const char *name=0) Constructor.
|