summaryrefslogtreecommitdiffstats
path: root/kbabel/common/msgfmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/common/msgfmt.cpp')
-rw-r--r--kbabel/common/msgfmt.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kbabel/common/msgfmt.cpp b/kbabel/common/msgfmt.cpp
index ef8ca895..61525a2f 100644
--- a/kbabel/common/msgfmt.cpp
+++ b/kbabel/common/msgfmt.cpp
@@ -35,33 +35,33 @@
#include <kapplication.h>
#include <kprocess.h>
-#include <qfileinfo.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qtextstream.h>
-#include <qstring.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqtextstream.h>
+#include <tqstring.h>
#include <stdlib.h>
using namespace KBabel;
-Msgfmt::Msgfmt(QObject* parent,const char* name)
- : QObject(parent , name)
+Msgfmt::Msgfmt(TQObject* parent,const char* name)
+ : TQObject(parent , name)
{
}
-Msgfmt::Status Msgfmt::checkSyntax(QString file,QString& output, bool gnu)
+Msgfmt::Status Msgfmt::checkSyntax(TQString file,TQString& output, bool gnu)
{
Status stat=Ok;
// this method does not return the right retrun values at the moment :-(
KProcess proc;
- connect(&proc,SIGNAL(receivedStdout(KProcess*, char*, int)),
- this,SLOT(addToOutput(KProcess*,char *, int )));
- connect(&proc,SIGNAL(receivedStderr(KProcess *, char *, int)),
- this,SLOT(addToOutput(KProcess*,char *, int)));
+ connect(&proc,TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this,TQT_SLOT(addToOutput(KProcess*,char *, int )));
+ connect(&proc,TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
+ this,TQT_SLOT(addToOutput(KProcess*,char *, int)));
// remove last output
_output="";
@@ -80,7 +80,7 @@ Msgfmt::Status Msgfmt::checkSyntax(QString file,QString& output, bool gnu)
}
else if(proc.normalExit())
{
- if( proc.exitStatus() || _output.contains(QRegExp("^.+:\\d+:")) ) // little workaround :-(
+ if( proc.exitStatus() || _output.contains(TQRegExp("^.+:\\d+:")) ) // little workaround :-(
stat=SyntaxError;
}
else
@@ -92,7 +92,7 @@ Msgfmt::Status Msgfmt::checkSyntax(QString file,QString& output, bool gnu)
return stat;
}
-Msgfmt::Status Msgfmt::checkSyntaxInDir(QString dir,QString regexp,QString& output)
+Msgfmt::Status Msgfmt::checkSyntaxInDir(TQString dir,TQString regexp,TQString& output)
{
Status stat=Ok;
@@ -100,10 +100,10 @@ Msgfmt::Status Msgfmt::checkSyntaxInDir(QString dir,QString regexp,QString& outp
KProcess proc;
proc.setUseShell(true);
- connect(&proc,SIGNAL(receivedStdout(KProcess*, char*, int)),
- this,SLOT(addToOutput(KProcess*,char *, int )));
- connect(&proc,SIGNAL(receivedStderr(KProcess *, char *, int)),
- this,SLOT(addToOutput(KProcess*,char *, int)));
+ connect(&proc,TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this,TQT_SLOT(addToOutput(KProcess*,char *, int )));
+ connect(&proc,TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
+ this,TQT_SLOT(addToOutput(KProcess*,char *, int)));
// remove last output
_output="";
@@ -117,7 +117,7 @@ Msgfmt::Status Msgfmt::checkSyntaxInDir(QString dir,QString regexp,QString& outp
}
else if(proc.normalExit())
{
- if( proc.exitStatus() || _output.contains(QRegExp("^.+:\\d+:")) ) // little workaround :-(
+ if( proc.exitStatus() || _output.contains(TQRegExp("^.+:\\d+:")) ) // little workaround :-(
stat=SyntaxError;
}
else
@@ -133,13 +133,13 @@ Msgfmt::Status Msgfmt::checkSyntaxInDir(QString dir,QString regexp,QString& outp
void Msgfmt::addToOutput(KProcess*,char *buffer, int buflen)
{
- QString newString = QString::fromLocal8Bit(buffer, buflen);
+ TQString newString = TQString::fromLocal8Bit(buffer, buflen);
_output+=newString;
}
-QString Msgfmt::tempSaveName()
+TQString Msgfmt::tempSaveName()
{
return kapp->tempSaveName("/tmp/kbabel_msgfmt.po");
}