diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/util/blockingkprocess.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/util/blockingkprocess.cpp')
-rw-r--r-- | lib/util/blockingkprocess.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/util/blockingkprocess.cpp b/lib/util/blockingkprocess.cpp index f0d6e6c3..9c9d9130 100644 --- a/lib/util/blockingkprocess.cpp +++ b/lib/util/blockingkprocess.cpp @@ -11,10 +11,10 @@ #include "blockingkprocess.h" -#include <qapplication.h> -#include <qtimer.h> +#include <tqapplication.h> +#include <tqtimer.h> -BlockingKProcess::BlockingKProcess(QObject *parent, const char *name) +BlockingKProcess::BlockingKProcess(TQObject *parent, const char *name) : KProcess(parent, name) { m_stdOut = ""; @@ -22,12 +22,12 @@ BlockingKProcess::BlockingKProcess(QObject *parent, const char *name) m_timeoutValue = 60; m_timer = 0L; - connect(this, SIGNAL(receivedStdout(KProcess *, char *, int)), - this, SLOT(slotReceivedStdOut(KProcess *, char *, int))); - connect(this, SIGNAL(receivedStderr(KProcess *, char *, int)), - this, SLOT(slotReceivedStdErr(KProcess *, char *, int))); - connect(this, SIGNAL(processExited(KProcess *)), - this, SLOT(slotProcessExited(KProcess *))); + connect(this, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), + this, TQT_SLOT(slotReceivedStdOut(KProcess *, char *, int))); + connect(this, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), + this, TQT_SLOT(slotReceivedStdErr(KProcess *, char *, int))); + connect(this, TQT_SIGNAL(processExited(KProcess *)), + this, TQT_SLOT(slotProcessExited(KProcess *))); } BlockingKProcess::BlockingKProcess() @@ -37,12 +37,12 @@ BlockingKProcess::BlockingKProcess() m_stdErr = ""; m_timeoutValue = 60; m_timer = 0L; - connect(this, SIGNAL(receivedStdout(KProcess *, char *, int)), - this, SLOT(slotReceivedStdOut(KProcess *, char *, int))); - connect(this, SIGNAL(receivedStderr(KProcess *, char *, int)), - this, SLOT(slotReceivedStdErr(KProcess *, char *, int))); - connect(this, SIGNAL(processExited(KProcess *)), - this, SLOT(slotProcessExited(KProcess *))); + connect(this, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), + this, TQT_SLOT(slotReceivedStdOut(KProcess *, char *, int))); + connect(this, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), + this, TQT_SLOT(slotReceivedStdErr(KProcess *, char *, int))); + connect(this, TQT_SIGNAL(processExited(KProcess *)), + this, TQT_SLOT(slotProcessExited(KProcess *))); } @@ -54,8 +54,8 @@ bool BlockingKProcess::start(RunMode runmode, Communication comm) if (KProcess::start(runmode, comm)) { m_timeout = false; - m_timer = new QTimer(); - connect(m_timer, SIGNAL(timeout()), this, SLOT(slotTimeOut())); + m_timer = new TQTimer(); + connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeOut())); m_timer->start(m_timeoutValue*1000, true); enter_loop(); delete m_timer; @@ -68,12 +68,12 @@ bool BlockingKProcess::start(RunMode runmode, Communication comm) void BlockingKProcess::slotReceivedStdOut(KProcess *, char *buffer, int buflen) { - m_stdOut += QString::fromLatin1(buffer, buflen); + m_stdOut += TQString::fromLatin1(buffer, buflen); } void BlockingKProcess::slotReceivedStdErr(KProcess *, char *buffer, int buflen) { - m_stdErr += QString::fromLatin1(buffer, buflen); + m_stdErr += TQString::fromLatin1(buffer, buflen); } void BlockingKProcess::slotProcessExited(KProcess *) @@ -89,13 +89,13 @@ void BlockingKProcess::slotTimeOut() } -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 BlockingKProcess::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); |