diff options
Diffstat (limited to 'kpackage/procbuf.cpp')
-rw-r--r-- | kpackage/procbuf.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/kpackage/procbuf.cpp b/kpackage/procbuf.cpp index 122bf18..e5b844b 100644 --- a/kpackage/procbuf.cpp +++ b/kpackage/procbuf.cpp @@ -26,7 +26,7 @@ #include "../config.h" #include "procbuf.h" -#include <kprocess.h> +#include <tdeprocess.h> #include "kpackage.h" #include <tdelocale.h> #include <tqlabel.h> @@ -37,8 +37,6 @@ Modal::Modal(TQString msg, TQWidget *parent, const char * name ) { TQLabel *line1 = new TQLabel(msg,this); line1->setAlignment(AlignCenter); - line1->setAutoResize(true); - } void Modal::terminate() @@ -50,7 +48,7 @@ procbuf::procbuf() { m = NULL; tm = new TQTimer(this); - connect(tm, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout())); + connect(tm, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout())); } procbuf::~procbuf() @@ -61,12 +59,12 @@ void procbuf::setup(TQString cmd) { buf.truncate(0); proc = new TDEProcess(); - connect(proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int)), - this, TQT_SLOT(slotReadInfo(TDEProcess *, char *, int))); - connect(proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int)), - this, TQT_SLOT(slotReadInfo(TDEProcess *, char *, int))); - connect(proc, TQT_SIGNAL( processExited(TDEProcess *)), - this, TQT_SLOT(slotExited(TDEProcess *))); + connect(proc, TQ_SIGNAL( receivedStdout(TDEProcess *, char *, int)), + this, TQ_SLOT(slotReadInfo(TDEProcess *, char *, int))); + connect(proc, TQ_SIGNAL( receivedStderr(TDEProcess *, char *, int)), + this, TQ_SLOT(slotReadInfo(TDEProcess *, char *, int))); + connect(proc, TQ_SIGNAL( processExited(TDEProcess *)), + this, TQ_SLOT(slotExited(TDEProcess *))); proc->clearArguments(); *proc << cmd; command = cmd; @@ -118,7 +116,7 @@ int procbuf::start (TQString msg, bool errorDlg, if (!proc->start(!msg.isNull() ? TDEProcess::NotifyOnExit : TDEProcess::Block, TDEProcess::All)) { if (errorDlg) { - KpMsgE(i18n("Kprocess Failure"),TRUE); + KpMsgE(i18n("TDEProcess Failure"),TRUE); } return 0; }; @@ -142,7 +140,7 @@ int procbuf::start (TQString msg, bool errorDlg, } else { if (!proc->normalExit() || proc->exitStatus()) { if (errorDlg) { - KpMsg("Error",i18n("Kprocess error:%1").arg(buf), TRUE); + KpMsg("Error",i18n("TDEProcess error:%1").arg(buf), TRUE); } delete proc; proc = 0; return 0; |