diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:30:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:30:26 +0000 |
commit | 94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a (patch) | |
tree | 961f7eb9997011a96d54a249dcb663025f686102 /src/autotraceformats.cpp | |
parent | dad5420e97a9a56cce014e9380026063ee9d279c (diff) | |
download | potracegui-94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a.tar.gz potracegui-94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a.zip |
TQt4 port potracegui
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/potracegui@1239033 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/autotraceformats.cpp')
-rw-r--r-- | src/autotraceformats.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/autotraceformats.cpp b/src/autotraceformats.cpp index 4f8ff9c..c394694 100644 --- a/src/autotraceformats.cpp +++ b/src/autotraceformats.cpp @@ -19,9 +19,9 @@ ***************************************************************************/ #include "autotraceformats.h" -AutotraceFormats::AutotraceFormats(QObject *parent, const char *name): QObject(parent, name), allOK(true) { - inputProcess=new QProcess(this); - outputProcess=new QProcess(this); +AutotraceFormats::AutotraceFormats(TQObject *tqparent, const char *name): TQObject(tqparent, name), allOK(true) { + inputProcess=new TQProcess(this); + outputProcess=new TQProcess(this); inputProcess->addArgument("autotrace"); inputProcess->addArgument("--list-input-formats"); @@ -29,8 +29,8 @@ AutotraceFormats::AutotraceFormats(QObject *parent, const char *name): QObject(p outputProcess->addArgument("autotrace"); outputProcess->addArgument("--list-output-formats"); - connect(inputProcess,SIGNAL(readyReadStderr()),this,SLOT(inputRead())); - connect(outputProcess,SIGNAL(readyReadStderr()),this,SLOT(outputRead())); + connect(inputProcess,TQT_SIGNAL(readyReadStderr()),this,TQT_SLOT(inputRead())); + connect(outputProcess,TQT_SIGNAL(readyReadStderr()),this,TQT_SLOT(outputRead())); if(!(inputProcess->start()) || !(outputProcess->start())) { allOK=false; @@ -45,7 +45,7 @@ void AutotraceFormats::inputRead( ) { void AutotraceFormats::outputRead( ) { while(outputProcess->canReadLineStderr()) { - QString tmp=outputProcess->readLineStderr(); + TQString tmp=outputProcess->readLineStderr(); if(!(tmp.startsWith("Supported"))) output+=tmp.stripWhiteSpace(); } @@ -59,11 +59,11 @@ bool AutotraceFormats::done( ) { return (!(inputProcess->isRunning()) && !(outputProcess->isRunning())); } -QStringList AutotraceFormats::inputFormats( ) { +TQStringList AutotraceFormats::inputFormats( ) { return input; } -QStringList AutotraceFormats::outputFormats( ) { +TQStringList AutotraceFormats::outputFormats( ) { return output; } |