summaryrefslogtreecommitdiffstats
path: root/kommander/editor/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/editor/mainwindow.cpp')
-rw-r--r--kommander/editor/mainwindow.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kommander/editor/mainwindow.cpp b/kommander/editor/mainwindow.cpp
index 8769f54d..43aea773 100644
--- a/kommander/editor/mainwindow.cpp
+++ b/kommander/editor/mainwindow.cpp
@@ -449,16 +449,16 @@ void MainWindow::runForm()
KMessageBox::error(this, i18n("<qt>Cannot create backup file <i>%1</i>.</qt>").arg(m_fileName + ".backup"));
}
::chmod(m_fileName.local8Bit(), S_IRWXU);
- KProcess* process = new KProcess;
+ TDEProcess* process = new TDEProcess;
process->setUseShell(true);
(*process) << "kmdr-executor" << TQString("\"%1\"").arg(form->formFile()->fileName());
- connect(process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), messageLog,
- TQT_SLOT(receivedStdout(KProcess*, char*, int)));
- connect(process, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), messageLog,
- TQT_SLOT(receivedStderr(KProcess*, char*, int)));
- connect(process, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(closeRunningForm(KProcess*)));
+ connect(process, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), messageLog,
+ TQT_SLOT(receivedStdout(TDEProcess*, char*, int)));
+ connect(process, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), messageLog,
+ TQT_SLOT(receivedStderr(TDEProcess*, char*, int)));
+ connect(process, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(closeRunningForm(TDEProcess*)));
messageLog->clear(MessageLog::All);
- previewing = process->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ previewing = process->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
}
}
@@ -513,21 +513,21 @@ void MainWindow::runForm4()
KMessageBox::error(this, i18n("<qt>Cannot create backup file <i>%1</i>.</qt>").arg(m_fileName + ".backup"));
}
::chmod(m_fileName.local8Bit(), S_IRWXU);
- KProcess* process = new KProcess;
+ TDEProcess* process = new TDEProcess;
process->setUseShell(true);
(*process) << "kommander" << TQString("\"%1\"").arg(form->formFile()->fileName());
- connect(process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), messageLog,
- TQT_SLOT(receivedStdout(KProcess*, char*, int)));
- connect(process, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), messageLog,
- TQT_SLOT(receivedStderr(KProcess*, char*, int)));
- connect(process, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(closeRunningForm(KProcess*)));
+ connect(process, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), messageLog,
+ TQT_SLOT(receivedStdout(TDEProcess*, char*, int)));
+ connect(process, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), messageLog,
+ TQT_SLOT(receivedStderr(TDEProcess*, char*, int)));
+ connect(process, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(closeRunningForm(TDEProcess*)));
messageLog->clear(MessageLog::All);
- previewing = process->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ previewing = process->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
}
}
-void MainWindow::closeRunningForm(KProcess* process)
+void MainWindow::closeRunningForm(TDEProcess* process)
{
previewing = false;
delete process;