summaryrefslogtreecommitdiffstats
path: root/kjsembed/ksimpleprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/ksimpleprocess.cpp')
-rw-r--r--kjsembed/ksimpleprocess.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kjsembed/ksimpleprocess.cpp b/kjsembed/ksimpleprocess.cpp
index ace19fcc..212566ec 100644
--- a/kjsembed/ksimpleprocess.cpp
+++ b/kjsembed/ksimpleprocess.cpp
@@ -19,27 +19,27 @@
* Boston, MA 02110-1301, USA.
*/
#include "ksimpleprocess.h"
-#include <qapplication.h>
+#include <tqapplication.h>
#include <klocale.h>
-static QStringList splitArgList( const QString &args)
+static TQStringList splitArgList( const TQString &args)
{
- QStringList returnArgs = QStringList::split( ' ', args);
+ TQStringList returnArgs = TQStringList::split( ' ', args);
return returnArgs;
}
-QString KSimpleProcess::exec( const QString &args, bool addStdErr )
+TQString KSimpleProcess::exec( const TQString &args, bool addStdErr )
{
KSimpleProcess proc;
return proc.execInternal( args, addStdErr);
}
-QString KSimpleProcess::execInternal( const QString &args, bool addStdError)
+TQString KSimpleProcess::execInternal( const TQString &args, bool addStdError)
{
m_proc->setArguments( splitArgList( args ));
- connect(m_proc, SIGNAL(processExited()), this, SLOT(slotProcessExited()));
- connect(m_proc, SIGNAL(readyReadStdout()), this, SLOT(slotReceivedStdout()));
+ connect(m_proc, TQT_SIGNAL(processExited()), this, TQT_SLOT(slotProcessExited()));
+ connect(m_proc, TQT_SIGNAL(readyReadStdout()), this, TQT_SLOT(slotReceivedStdout()));
if( addStdError )
- connect(m_proc, SIGNAL(readyReadStderr()), this, SLOT(slotReceivedStderr()));
+ connect(m_proc, TQT_SIGNAL(readyReadStderr()), this, TQT_SLOT(slotReceivedStderr()));
if ( !m_proc->start() )
return i18n("Could not run command '%1'.").arg( args.latin1() );
@@ -47,11 +47,11 @@ QString KSimpleProcess::execInternal( const QString &args, bool addStdError)
return m_currBuffer;
}
-KSimpleProcess::KSimpleProcess() : QObject(0,0)
+KSimpleProcess::KSimpleProcess() : TQObject(0,0)
{
m_currBuffer = "";
m_stdErrOn = false;
- m_proc = new QProcess(this);
+ m_proc = new TQProcess(this);
}
KSimpleProcess::~KSimpleProcess()
@@ -61,13 +61,13 @@ KSimpleProcess::~KSimpleProcess()
// If a troll sees this, he kills david not me
-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 KSimpleProcess::enter_loop()
{
- QWidget dummy(0,0,WType_Dialog | WShowModal);
- dummy.setFocusPolicy( QWidget::NoFocus );
+ TQWidget dummy(0,0,WType_Dialog | WShowModal);
+ dummy.setFocusPolicy( TQWidget::NoFocus );
qt_enter_modal(&dummy);
qApp->enter_loop();
qt_leave_modal(&dummy);