diff options
Diffstat (limited to 'kommander/widget/myprocess.cpp')
-rw-r--r-- | kommander/widget/myprocess.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kommander/widget/myprocess.cpp b/kommander/widget/myprocess.cpp index e7e05e3b..59eb67fb 100644 --- a/kommander/widget/myprocess.cpp +++ b/kommander/widget/myprocess.cpp @@ -19,9 +19,9 @@ #include <klocale.h> /* QT INCLUDES */ -#include <qapplication.h> -#include <qobject.h> -#include <qstring.h> +#include <tqapplication.h> +#include <tqobject.h> +#include <tqstring.h> /* OTHER INCLUDES */ #include "myprocess.h" @@ -32,15 +32,15 @@ MyProcess::MyProcess(const KommanderWidget *a_atw) { } -void qt_enter_modal(QWidget *widget); -void qt_leave_modal(QWidget *widget); +void qt_enter_modal(TQWidget *widget); +void qt_leave_modal(TQWidget *widget); void MyProcess::setBlocking(bool blocking) { m_blocking = blocking; } -QString MyProcess::output() const +TQString MyProcess::output() const { return m_output; } @@ -59,16 +59,16 @@ void MyProcess::cancel() } } -QString MyProcess::run(const QString& a_command, const QString& a_shell) +TQString MyProcess::run(const TQString& a_command, const TQString& a_shell) { - QString at = a_command.stripWhiteSpace(); + TQString at = a_command.stripWhiteSpace(); if (at.isEmpty()) { emit processExited(0); - return QString(); + return TQString(); } - QString shellName = a_shell; + TQString shellName = a_shell; if (shellName.isEmpty()) shellName = "/bin/sh"; @@ -85,24 +85,24 @@ QString MyProcess::run(const QString& a_command, const QString& a_shell) mProcess = new KProcess; (*mProcess) << shellName.latin1(); - connect(mProcess, SIGNAL(receivedStdout(KProcess*, char*, int)), - SLOT(slotReceivedStdout(KProcess*, char*, int))); - connect(mProcess, SIGNAL(processExited(KProcess*)), SLOT(slotProcessExited(KProcess*))); + connect(mProcess, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), + TQT_SLOT(slotReceivedStdout(KProcess*, char*, int))); + connect(mProcess, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(slotProcessExited(KProcess*))); if(!mProcess->start(KProcess::NotifyOnExit, KProcess::All)) { m_atw->printError(i18n("<qt>Failed to start shell process<br><b>%1</b></qt>").arg(shellName)); - return QString(); + return TQString(); } mProcess->writeStdin(m_input, m_input.length()); mProcess->closeStdin(); if (!m_blocking) - return QString(); + return TQString(); else { - QWidget dummy(0, 0, WType_Dialog | WShowModal); - dummy.setFocusPolicy(QWidget::NoFocus); + TQWidget dummy(0, 0, WType_Dialog | WShowModal); + dummy.setFocusPolicy(TQWidget::NoFocus); m_loopStarted = true; qt_enter_modal(&dummy); qApp->enter_loop(); @@ -117,7 +117,7 @@ QString MyProcess::run(const QString& a_command, const QString& a_shell) void MyProcess::slotReceivedStdout(KProcess*, char* a_buffer, int a_len) { - m_output += QString::fromLocal8Bit(a_buffer, a_len); + m_output += TQString::fromLocal8Bit(a_buffer, a_len); emit processReceivedStdout(this, a_buffer, a_len); } |