summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kio_umountwrapper.cpp14
-rw-r--r--src/kio_umountwrapper.h3
-rw-r--r--src/main.cpp2
3 files changed, 10 insertions, 9 deletions
diff --git a/src/kio_umountwrapper.cpp b/src/kio_umountwrapper.cpp
index 23d40a6..8b6116a 100644
--- a/src/kio_umountwrapper.cpp
+++ b/src/kio_umountwrapper.cpp
@@ -22,7 +22,7 @@
#include "kio_umountwrapper.h"
#include <cstdlib>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kapplication.h>
#include <klocale.h>
@@ -31,7 +31,7 @@
#include <kcmdlineargs.h>
#include <kdebug.h>
-kio_umountwrapper::kio_umountwrapper(const QString& url)
+kio_umountwrapper::kio_umountwrapper(const TQString& url)
: KApplication( 0, "kio_umountwrapper" )
{
m_progress = new KProgressDialog();
@@ -43,17 +43,17 @@ kio_umountwrapper::kio_umountwrapper(const QString& url)
m_progress->progressBar()->setTotalSteps(0);
m_progress->show();
- QTimer *t = new QTimer(this);
- connect(t, SIGNAL(timeout()), SLOT(progressAdvance()));
+ TQTimer *t = new TQTimer(this);
+ connect(t, TQT_SIGNAL(timeout()), TQT_SLOT(progressAdvance()));
t->start(10, FALSE);
- KProcess *p = new KProcess(this);
+ KProcess *p = new KProcess(TQT_TQOBJECT(this));
*p << "kio_media_mounthelper";
*p << "-s";
*p << url;
kdDebug() << "KProcess: " << url << endl;
- connect(p, SIGNAL(processExited(KProcess *)),
- this, SLOT(processFinished(KProcess *)));
+ connect(p, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(processFinished(KProcess *)));
p->start();
}
diff --git a/src/kio_umountwrapper.h b/src/kio_umountwrapper.h
index d0459e4..57c8dea 100644
--- a/src/kio_umountwrapper.h
+++ b/src/kio_umountwrapper.h
@@ -33,8 +33,9 @@
class kio_umountwrapper : public KApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
- kio_umountwrapper(const QString&);
+ kio_umountwrapper(const TQString&);
private:
KProgressDialog *m_progress;
diff --git a/src/main.cpp b/src/main.cpp
index 7f98d8a..8c2782f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -52,7 +52,7 @@ int main(int argc, char **argv)
if (args->count() == 0)
KCmdLineArgs::usage(i18n("No URL specified!"));
- else app = new kio_umountwrapper(QString(args->arg(0)));
+ else app = new kio_umountwrapper(TQString(args->arg(0)));
args->clear();