summaryrefslogtreecommitdiffstats
path: root/kbabel/common/msgfmt.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-24 13:49:56 -0600
committerTimothy Pearson <[email protected]>2013-01-24 13:49:56 -0600
commite6aaa3624cc6179b82a9bfff1760e742a669064c (patch)
tree3fed4deb0540d34f85dfb53b02bea7519e66cc6f /kbabel/common/msgfmt.cpp
parent4071ae43ea213cd0f7d5c344c939ebd97d097051 (diff)
downloadtdesdk-e6aaa3624cc6179b82a9bfff1760e742a669064c.tar.gz
tdesdk-e6aaa3624cc6179b82a9bfff1760e742a669064c.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kbabel/common/msgfmt.cpp')
-rw-r--r--kbabel/common/msgfmt.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kbabel/common/msgfmt.cpp b/kbabel/common/msgfmt.cpp
index 11e6969f..3a191a59 100644
--- a/kbabel/common/msgfmt.cpp
+++ b/kbabel/common/msgfmt.cpp
@@ -56,12 +56,12 @@ 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;
+ TDEProcess proc;
- 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)));
+ connect(&proc,TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this,TQT_SLOT(addToOutput(TDEProcess*,char *, int )));
+ connect(&proc,TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this,TQT_SLOT(addToOutput(TDEProcess*,char *, int)));
// remove last output
_output="";
@@ -74,7 +74,7 @@ Msgfmt::Status Msgfmt::checkSyntax(TQString file,TQString& output, bool gnu)
proc << "-vc";
}
- if(!proc.start(KProcess::Block,KProcess::Stderr))
+ if(!proc.start(TDEProcess::Block,TDEProcess::Stderr))
{
stat=NoExecutable;
}
@@ -97,21 +97,21 @@ Msgfmt::Status Msgfmt::checkSyntaxInDir(TQString dir,TQString regexp,TQString& o
Status stat=Ok;
// this method does not return the right return values at the moment :-(
- KProcess proc;
+ TDEProcess proc;
proc.setUseShell(true);
- 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)));
+ connect(&proc,TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this,TQT_SLOT(addToOutput(TDEProcess*,char *, int )));
+ connect(&proc,TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this,TQT_SLOT(addToOutput(TDEProcess*,char *, int)));
// remove last output
_output="";
proc << "IFS='\n'; msgfmt --statistics -o /dev/null "
- "$(find" << KProcess::quote(dir) << "-name" << KProcess::quote(regexp) << ")";
+ "$(find" << TDEProcess::quote(dir) << "-name" << TDEProcess::quote(regexp) << ")";
- if(!proc.start(KProcess::Block,KProcess::Stderr))
+ if(!proc.start(TDEProcess::Block,TDEProcess::Stderr))
{
stat=NoExecutable;
}
@@ -131,7 +131,7 @@ Msgfmt::Status Msgfmt::checkSyntaxInDir(TQString dir,TQString regexp,TQString& o
-void Msgfmt::addToOutput(KProcess*,char *buffer, int buflen)
+void Msgfmt::addToOutput(TDEProcess*,char *buffer, int buflen)
{
TQString newString = TQString::fromLocal8Bit(buffer, buflen);