21 #include "pushbutton.moc"
25 : TQPushButton(parent, name),
26 mFocusPolicy(focusPolicy()),
31 : TQPushButton(text, parent, name),
32 mFocusPolicy(focusPolicy()),
37 : TQPushButton(icon, text, parent, name),
38 mFocusPolicy(focusPolicy()),
44 if ((
int)ro != (
int)mReadOnly)
47 setFocusPolicy(ro ? TQWidget::NoFocus : mFocusPolicy);
53 void PushButton::mousePressEvent(TQMouseEvent* e)
58 if (e->button() == TQt::LeftButton)
61 TQPushButton::mousePressEvent(e);
64 void PushButton::mouseReleaseEvent(TQMouseEvent* e)
69 if (e->button() == TQt::LeftButton)
72 TQPushButton::mouseReleaseEvent(e);
75 void PushButton::mouseMoveEvent(TQMouseEvent* e)
78 TQPushButton::mouseMoveEvent(e);
81 void PushButton::keyPressEvent(TQKeyEvent* e)
95 TQPushButton::keyPressEvent(e);
98 void PushButton::keyReleaseEvent(TQKeyEvent* e)
101 TQPushButton::keyReleaseEvent(e);