diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:56:13 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:56:13 +0000 |
commit | e6b41752a97085386675ed687d4e3aee90bb4f55 (patch) | |
tree | 535408d55dc8d7bbd9b8bd845e8a143649057f4b | |
parent | 7c6070b35a381bca513984dc5ccf16be46874d73 (diff) | |
download | tdeio-umountwrapper-e6b41752a97085386675ed687d4e3aee90bb4f55.tar.gz tdeio-umountwrapper-e6b41752a97085386675ed687d4e3aee90bb4f55.zip |
TQt4 port kio-umountwrapper
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-umountwrapper@1239344 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | src/kio_umountwrapper.cpp | 14 | ||||
-rw-r--r-- | src/kio_umountwrapper.h | 3 | ||||
-rw-r--r-- | src/main.cpp | 2 |
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(); |