summaryrefslogtreecommitdiffstats
path: root/kbabel/common/msgfmt.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/common/msgfmt.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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");
}