summaryrefslogtreecommitdiffstats
path: root/kfilereplace/commandengine.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:51:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:51:30 -0600
commit29df04c24350cc76a41e2410d1c92445f9338b98 (patch)
treec2b9cde128e24275393a83d9eaec58b2ef12d109 /kfilereplace/commandengine.cpp
parentc70534eef6085384ef7ddff369a154dbc8901917 (diff)
downloadtdewebdev-29df04c24350cc76a41e2410d1c92445f9338b98.tar.gz
tdewebdev-29df04c24350cc76a41e2410d1c92445f9338b98.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kfilereplace/commandengine.cpp')
-rw-r--r--kfilereplace/commandengine.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kfilereplace/commandengine.cpp b/kfilereplace/commandengine.cpp
index af3cd2f2..5184773c 100644
--- a/kfilereplace/commandengine.cpp
+++ b/kfilereplace/commandengine.cpp
@@ -98,18 +98,18 @@ TQString CommandEngine::mathexp(const TQString& opt, const TQString& arg)
TQString program = "var=("+tempOpt+");print var";
TQString script = "echo '"+program+"' | bc -l;";
- KProcess* proc = new KProcess();
+ TDEProcess* proc = new TDEProcess();
proc->setUseShell(true);
*(proc) << script;
- connect(proc, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), this, TQT_SLOT(slotGetScriptOutput(KProcess*,char*,int)));
- connect(proc, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), this, TQT_SLOT(slotGetScriptError(KProcess*,char*,int)));
- connect(proc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotProcessExited(KProcess*)));
+ connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), this, TQT_SLOT(slotGetScriptOutput(TDEProcess*,char*,int)));
+ connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), this, TQT_SLOT(slotGetScriptError(TDEProcess*,char*,int)));
+ connect(proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcessExited(TDEProcess*)));
- //Through slotGetScriptOutput, m_processOutput contains the result of the KProcess call
- if(!proc->start(KProcess::Block, KProcess::All))
+ //Through slotGetScriptOutput, m_processOutput contains the result of the TDEProcess call
+ if(!proc->start(TDEProcess::Block, TDEProcess::All))
{
return TQString();
}
@@ -187,7 +187,7 @@ TQString CommandEngine::variableValue(const TQString &variable)
}
//SLOTS
-void CommandEngine::slotGetScriptError(KProcess* proc, char* s, int i)
+void CommandEngine::slotGetScriptError(TDEProcess* proc, char* s, int i)
{
Q_UNUSED(proc);
Q_UNUSED(proc);
@@ -195,7 +195,7 @@ void CommandEngine::slotGetScriptError(KProcess* proc, char* s, int i)
if(temp.isEmpty() || temp == "\n") return;
}
-void CommandEngine::slotGetScriptOutput(KProcess* proc, char* s, int i)
+void CommandEngine::slotGetScriptOutput(TDEProcess* proc, char* s, int i)
{
Q_UNUSED(proc);
TQCString temp(s,i+1);
@@ -205,7 +205,7 @@ void CommandEngine::slotGetScriptOutput(KProcess* proc, char* s, int i)
m_processOutput += TQString::fromLocal8Bit(temp);
}
-void CommandEngine::slotProcessExited(KProcess* proc)
+void CommandEngine::slotProcessExited(TDEProcess* proc)
{
Q_UNUSED(proc);
}