summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/pushbutton.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/pushbutton.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/pushbutton.cpp')
-rw-r--r--kalarm/lib/pushbutton.cpp34
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);
}