summaryrefslogtreecommitdiffstats
path: root/src/autotraceformats.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 21:30:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 21:30:26 +0000
commit94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a (patch)
tree961f7eb9997011a96d54a249dcb663025f686102 /src/autotraceformats.cpp
parentdad5420e97a9a56cce014e9380026063ee9d279c (diff)
downloadpotracegui-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.cpp16
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;
}