diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/checkbox.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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); } |