diff options
Diffstat (limited to 'kfilereplace/commandengine.cpp')
-rw-r--r-- | kfilereplace/commandengine.cpp | 18 |
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); } |