diff options
Diffstat (limited to 'kalarm/lib/pushbutton.cpp')
-rw-r--r-- | kalarm/lib/pushbutton.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kalarm/lib/pushbutton.cpp b/kalarm/lib/pushbutton.cpp index 8b279082c..ed8440a05 100644 --- a/kalarm/lib/pushbutton.cpp +++ b/kalarm/lib/pushbutton.cpp @@ -21,20 +21,20 @@ #include "pushbutton.moc" -PushButton::PushButton(QWidget* parent, const char* name) - : QPushButton(parent, name), +PushButton::PushButton(TQWidget* parent, const char* name) + : TQPushButton(parent, name), mFocusPolicy(focusPolicy()), mReadOnly(false) { } -PushButton::PushButton(const QString& text, QWidget* parent, const char* name) - : QPushButton(text, parent, name), +PushButton::PushButton(const TQString& text, TQWidget* parent, const char* name) + : TQPushButton(text, parent, name), mFocusPolicy(focusPolicy()), mReadOnly(false) { } -PushButton::PushButton(const QIconSet& icon, const QString& text, QWidget* parent, const char* name) - : QPushButton(icon, text, parent, name), +PushButton::PushButton(const TQIconSet& icon, const TQString& text, TQWidget* parent, const char* name) + : TQPushButton(icon, text, parent, name), mFocusPolicy(focusPolicy()), mReadOnly(false) { } @@ -44,13 +44,13 @@ void PushButton::setReadOnly(bool ro) if ((int)ro != (int)mReadOnly) { mReadOnly = ro; - setFocusPolicy(ro ? QWidget::NoFocus : mFocusPolicy); + setFocusPolicy(ro ? TQWidget::NoFocus : mFocusPolicy); if (ro) clearFocus(); } } -void PushButton::mousePressEvent(QMouseEvent* e) +void PushButton::mousePressEvent(TQMouseEvent* e) { if (mReadOnly) { @@ -58,10 +58,10 @@ void PushButton::mousePressEvent(QMouseEvent* e) if (e->button() == Qt::LeftButton) return; } - QPushButton::mousePressEvent(e); + TQPushButton::mousePressEvent(e); } -void PushButton::mouseReleaseEvent(QMouseEvent* e) +void PushButton::mouseReleaseEvent(TQMouseEvent* e) { if (mReadOnly) { @@ -69,16 +69,16 @@ void PushButton::mouseReleaseEvent(QMouseEvent* e) if (e->button() == Qt::LeftButton) return; } - QPushButton::mouseReleaseEvent(e); + TQPushButton::mouseReleaseEvent(e); } -void PushButton::mouseMoveEvent(QMouseEvent* e) +void PushButton::mouseMoveEvent(TQMouseEvent* e) { if (!mReadOnly) - QPushButton::mouseMoveEvent(e); + TQPushButton::mouseMoveEvent(e); } -void PushButton::keyPressEvent(QKeyEvent* e) +void PushButton::keyPressEvent(TQKeyEvent* e) { if (mReadOnly) switch (e->key()) @@ -92,11 +92,11 @@ void PushButton::keyPressEvent(QKeyEvent* e) default: return; } - QPushButton::keyPressEvent(e); + TQPushButton::keyPressEvent(e); } -void PushButton::keyReleaseEvent(QKeyEvent* e) +void PushButton::keyReleaseEvent(TQKeyEvent* e) { if (!mReadOnly) - QPushButton::keyReleaseEvent(e); + TQPushButton::keyReleaseEvent(e); } |