summaryrefslogtreecommitdiffstats
path: root/kio/tests/kdcopcheck.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kio/tests/kdcopcheck.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/tests/kdcopcheck.cpp')
-rw-r--r--kio/tests/kdcopcheck.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kio/tests/kdcopcheck.cpp b/kio/tests/kdcopcheck.cpp
index 09cbf1310..b61dfd03d 100644
--- a/kio/tests/kdcopcheck.cpp
+++ b/kio/tests/kdcopcheck.cpp
@@ -8,7 +8,7 @@
#include <kimageio.h>
#include <kprotocolinfo.h>
#include <kprocess.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "kdcopcheck.h"
#include <dcopclient.h>
@@ -18,7 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
-void debug(QString txt)
+void debug(TQString txt)
{
fprintf(stderr, "%s\n", txt.ascii());
}
@@ -33,27 +33,27 @@ void debug(const char *format, const char *txt)
fprintf(stderr, "\n");
}
-TestService::TestService(const QString &exec)
+TestService::TestService(const TQString &exec)
{
m_exec = exec;
proc << exec;
proc.start();
- connect(kapp->dcopClient(), SIGNAL( applicationRegistered(const QCString&)),
- this, SLOT(newApp(const QCString&)));
- connect(kapp->dcopClient(), SIGNAL( applicationRemoved(const QCString&)),
- this, SLOT(endApp(const QCString&)));
- connect(&proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(appExit()));
+ connect(kapp->dcopClient(), TQT_SIGNAL( applicationRegistered(const TQCString&)),
+ this, TQT_SLOT(newApp(const TQCString&)));
+ connect(kapp->dcopClient(), TQT_SIGNAL( applicationRemoved(const TQCString&)),
+ this, TQT_SLOT(endApp(const TQCString&)));
+ connect(&proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(appExit()));
- QTimer::singleShot(20*1000, this, SLOT(stop()));
+ TQTimer::singleShot(20*1000, this, TQT_SLOT(stop()));
result = KService::DCOP_None;
}
-void TestService::newApp(const QCString &appId)
+void TestService::newApp(const TQCString &appId)
{
- QString id = appId;
+ TQString id = appId;
if (id == m_exec)
{
result = KService::DCOP_Unique;
@@ -67,7 +67,7 @@ void TestService::newApp(const QCString &appId)
qWarning("Register %s", appId.data());
}
-void TestService::endApp(const QCString &appId)
+void TestService::endApp(const TQCString &appId)
{
qWarning("Unegister %s", appId.data());
}
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
int n = test->exec();
delete test;
- QString result;
+ TQString result;
if (n == KService::DCOP_None)
result = "None";
else if (n == KService::DCOP_Unique)