summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/timer.cpp')
-rw-r--r--kommander/widgets/timer.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kommander/widgets/timer.cpp b/kommander/widgets/timer.cpp
index 9aff1560..5a7251f1 100644
--- a/kommander/widgets/timer.cpp
+++ b/kommander/widgets/timer.cpp
@@ -13,9 +13,9 @@
* *
***************************************************************************/
/* QT INCLUDES */
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qwidget.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqwidget.h>
/* KDE INCLUDES */
#include <kglobal.h>
@@ -37,30 +37,30 @@ enum Functions {
LastFunction
};
-Timer::Timer(QWidget *a_parent, const char *a_name)
- : QLabel(a_parent, a_name), KommanderWidget(this)
+Timer::Timer(TQWidget *a_parent, const char *a_name)
+ : TQLabel(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
if (KommanderWidget::inEditor)
{
setPixmap(KGlobal::iconLoader()->loadIcon("kalarm", KIcon::NoGroup, KIcon::SizeMedium));
- setFrameStyle(QFrame::Box | QFrame::Plain);
+ setFrameStyle(TQFrame::Box | TQFrame::Plain);
setLineWidth(1);
setFixedSize(pixmap()->size());
}
else
setHidden(true);
- mTimer = new QTimer(this);
+ mTimer = new TQTimer(this);
setInterval(5000);
setSingleShot(false);
- connect(mTimer, SIGNAL(timeout()), SLOT(timeout()));
+ connect(mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(timeout()));
KommanderPlugin::setDefaultGroup(Group::DCOP);
- KommanderPlugin::registerFunction(SetInterval, "setInterval(QString widget, int interval)", i18n("Set the timer timeout interval in ms."), 2);
+ KommanderPlugin::registerFunction(SetInterval, "setInterval(TQString widget, int interval)", i18n("Set the timer timeout interval in ms."), 2);
}
Timer::~Timer()
@@ -91,9 +91,9 @@ void Timer::setSingleShot(bool a_shot)
mSingleShot = a_shot;
}
-QString Timer::currentState() const
+TQString Timer::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool Timer::isKommanderWidget() const
@@ -101,27 +101,27 @@ bool Timer::isKommanderWidget() const
return true;
}
-QStringList Timer::associatedText() const
+TQStringList Timer::associatedText() const
{
return KommanderWidget::associatedText();
}
-void Timer::setAssociatedText(const QStringList& a_at)
+void Timer::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void Timer::setWidgetText(const QString& a_text)
+void Timer::setWidgetText(const TQString& a_text)
{
KommanderWidget::setAssociatedText(a_text);
}
-void Timer::setPopulationText(const QString& a_text)
+void Timer::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString Timer::populationText() const
+TQString Timer::populationText() const
{
return KommanderWidget::populationText();
}
@@ -148,7 +148,7 @@ void Timer::timeout()
void Timer::execute()
{
if (mSingleShot)
- QTimer::singleShot(mInterval, this, SLOT(timeout()));
+ TQTimer::singleShot(mInterval, this, TQT_SLOT(timeout()));
else
mTimer->start(mInterval);
}
@@ -165,7 +165,7 @@ bool Timer::isFunctionSupported(int f)
return f == DCOP::setText || f == DCOP::execute || f == DCOP::cancel || (f > FirstFunction && f < LastFunction);
}
-QString Timer::handleDCOP(int function, const QStringList& args)
+TQString Timer::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::setText:
@@ -183,7 +183,7 @@ QString Timer::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}
#include "timer.moc"