diff options
Diffstat (limited to 'kalarm/lib/checkbox.cpp')
-rw-r--r-- | kalarm/lib/checkbox.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kalarm/lib/checkbox.cpp b/kalarm/lib/checkbox.cpp index c600a4950..dde0d10ff 100644 --- a/kalarm/lib/checkbox.cpp +++ b/kalarm/lib/checkbox.cpp @@ -21,15 +21,15 @@ #include "checkbox.moc" -CheckBox::CheckBox(QWidget* parent, const char* name) - : QCheckBox(parent, name), +CheckBox::CheckBox(TQWidget* parent, const char* name) + : TQCheckBox(parent, name), mFocusPolicy(focusPolicy()), mFocusWidget(0), mReadOnly(false) { } -CheckBox::CheckBox(const QString& text, QWidget* parent, const char* name) - : QCheckBox(text, parent, name), +CheckBox::CheckBox(const TQString& text, TQWidget* parent, const char* name) + : TQCheckBox(text, parent, name), mFocusPolicy(focusPolicy()), mFocusWidget(0), mReadOnly(false) @@ -44,7 +44,7 @@ void CheckBox::setReadOnly(bool ro) if ((int)ro != (int)mReadOnly) { mReadOnly = ro; - setFocusPolicy(ro ? QWidget::NoFocus : mFocusPolicy); + setFocusPolicy(ro ? TQWidget::NoFocus : mFocusPolicy); if (ro) clearFocus(); } @@ -53,14 +53,14 @@ void CheckBox::setReadOnly(bool ro) /****************************************************************************** * Specify a widget to receive focus when the checkbox is clicked on. */ -void CheckBox::setFocusWidget(QWidget* w, bool enable) +void CheckBox::setFocusWidget(TQWidget* w, bool enable) { mFocusWidget = w; mFocusWidgetEnable = enable; if (w) - connect(this, SIGNAL(clicked()), SLOT(slotClicked())); + connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked())); else - disconnect(this, SIGNAL(clicked()), this, SLOT(slotClicked())); + disconnect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClicked())); } /****************************************************************************** @@ -81,7 +81,7 @@ void CheckBox::slotClicked() * Event handlers to intercept events if in read-only mode. * Any events which could change the checkbox state are discarded. */ -void CheckBox::mousePressEvent(QMouseEvent* e) +void CheckBox::mousePressEvent(TQMouseEvent* e) { if (mReadOnly) { @@ -89,10 +89,10 @@ void CheckBox::mousePressEvent(QMouseEvent* e) if (e->button() == Qt::LeftButton) return; } - QCheckBox::mousePressEvent(e); + TQCheckBox::mousePressEvent(e); } -void CheckBox::mouseReleaseEvent(QMouseEvent* e) +void CheckBox::mouseReleaseEvent(TQMouseEvent* e) { if (mReadOnly) { @@ -100,16 +100,16 @@ void CheckBox::mouseReleaseEvent(QMouseEvent* e) if (e->button() == Qt::LeftButton) return; } - QCheckBox::mouseReleaseEvent(e); + TQCheckBox::mouseReleaseEvent(e); } -void CheckBox::mouseMoveEvent(QMouseEvent* e) +void CheckBox::mouseMoveEvent(TQMouseEvent* e) { if (!mReadOnly) - QCheckBox::mouseMoveEvent(e); + TQCheckBox::mouseMoveEvent(e); } -void CheckBox::keyPressEvent(QKeyEvent* e) +void CheckBox::keyPressEvent(TQKeyEvent* e) { if (mReadOnly) switch (e->key()) @@ -123,11 +123,11 @@ void CheckBox::keyPressEvent(QKeyEvent* e) default: return; } - QCheckBox::keyPressEvent(e); + TQCheckBox::keyPressEvent(e); } -void CheckBox::keyReleaseEvent(QKeyEvent* e) +void CheckBox::keyReleaseEvent(TQKeyEvent* e) { if (!mReadOnly) - QCheckBox::keyReleaseEvent(e); + TQCheckBox::keyReleaseEvent(e); } |