summaryrefslogtreecommitdiffstats
path: root/kommander/editor/mainwindow.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 /kommander/editor/mainwindow.cpp
parentc70534eef6085384ef7ddff369a154dbc8901917 (diff)
downloadtdewebdev-29df04c24350cc76a41e2410d1c92445f9338b98.tar.gz
tdewebdev-29df04c24350cc76a41e2410d1c92445f9338b98.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
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;