summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/radiobutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/radiobutton.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/radiobutton.cpp')
-rw-r--r--kalarm/lib/radiobutton.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kalarm/lib/radiobutton.cpp b/kalarm/lib/radiobutton.cpp
index d66911eeb..7cf58f082 100644
--- a/kalarm/lib/radiobutton.cpp
+++ b/kalarm/lib/radiobutton.cpp
@@ -21,15 +21,15 @@
#include "radiobutton.moc"
-RadioButton::RadioButton(QWidget* parent, const char* name)
- : QRadioButton(parent, name),
+RadioButton::RadioButton(TQWidget* parent, const char* name)
+ : TQRadioButton(parent, name),
mFocusPolicy(focusPolicy()),
mFocusWidget(0),
mReadOnly(false)
{ }
-RadioButton::RadioButton(const QString& text, QWidget* parent, const char* name)
- : QRadioButton(text, parent, name),
+RadioButton::RadioButton(const TQString& text, TQWidget* parent, const char* name)
+ : TQRadioButton(text, parent, name),
mFocusPolicy(focusPolicy()),
mFocusWidget(0),
mReadOnly(false)
@@ -44,7 +44,7 @@ void RadioButton::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 RadioButton::setReadOnly(bool ro)
/******************************************************************************
* Specify a widget to receive focus when the button is clicked on.
*/
-void RadioButton::setFocusWidget(QWidget* w, bool enable)
+void RadioButton::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 RadioButton::slotClicked()
* Event handlers to intercept events if in read-only mode.
* Any events which could change the button state are discarded.
*/
-void RadioButton::mousePressEvent(QMouseEvent* e)
+void RadioButton::mousePressEvent(TQMouseEvent* e)
{
if (mReadOnly)
{
@@ -89,10 +89,10 @@ void RadioButton::mousePressEvent(QMouseEvent* e)
if (e->button() == Qt::LeftButton)
return;
}
- QRadioButton::mousePressEvent(e);
+ TQRadioButton::mousePressEvent(e);
}
-void RadioButton::mouseReleaseEvent(QMouseEvent* e)
+void RadioButton::mouseReleaseEvent(TQMouseEvent* e)
{
if (mReadOnly)
{
@@ -100,16 +100,16 @@ void RadioButton::mouseReleaseEvent(QMouseEvent* e)
if (e->button() == Qt::LeftButton)
return;
}
- QRadioButton::mouseReleaseEvent(e);
+ TQRadioButton::mouseReleaseEvent(e);
}
-void RadioButton::mouseMoveEvent(QMouseEvent* e)
+void RadioButton::mouseMoveEvent(TQMouseEvent* e)
{
if (!mReadOnly)
- QRadioButton::mouseMoveEvent(e);
+ TQRadioButton::mouseMoveEvent(e);
}
-void RadioButton::keyPressEvent(QKeyEvent* e)
+void RadioButton::keyPressEvent(TQKeyEvent* e)
{
if (mReadOnly)
switch (e->key())
@@ -124,11 +124,11 @@ void RadioButton::keyPressEvent(QKeyEvent* e)
default:
return;
}
- QRadioButton::keyPressEvent(e);
+ TQRadioButton::keyPressEvent(e);
}
-void RadioButton::keyReleaseEvent(QKeyEvent* e)
+void RadioButton::keyReleaseEvent(TQKeyEvent* e)
{
if (!mReadOnly)
- QRadioButton::keyReleaseEvent(e);
+ TQRadioButton::keyReleaseEvent(e);
}