summaryrefslogtreecommitdiffstats
path: root/kjsembed/ksimpleprocess.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/ksimpleprocess.cpp
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);