summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/stty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/debugger/stty.cpp')
-rw-r--r--languages/ruby/debugger/stty.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/languages/ruby/debugger/stty.cpp b/languages/ruby/debugger/stty.cpp
index 44cb3795..4316da50 100644
--- a/languages/ruby/debugger/stty.cpp
+++ b/languages/ruby/debugger/stty.cpp
@@ -58,10 +58,10 @@
#include <bsdtty.h>
#endif
-#include <qintdict.h>
-#include <qsocketnotifier.h>
-#include <qstring.h>
-#include <qfile.h>
+#include <tqintdict.h>
+#include <tqsocketnotifier.h>
+#include <tqstring.h>
+#include <tqfile.h>
#include <klocale.h>
#include <kstandarddirs.h>
@@ -91,8 +91,8 @@ static int chownpty(int fd, int grant)
if (fd != PTY_FILENO && dup2(fd, PTY_FILENO) < 0)
::exit(1);
- QString path = locate("exe", BASE_CHOWN);
- execle(QFile::encodeName(path), BASE_CHOWN, grant?"--grant":"--revoke", (void *)0, NULL);
+ TQString path = locate("exe", BASE_CHOWN);
+ execle(TQFile::encodeName(path), BASE_CHOWN, grant?"--grant":"--revoke", (void *)0, NULL);
::exit(1); // should not be reached
}
if (pid > 0) {
@@ -117,8 +117,8 @@ static int chownpty(int fd, int grant)
// **************************************************************************
-STTY::STTY(bool ext, const QString &termAppName)
- : QObject(),
+STTY::STTY(bool ext, const TQString &termAppName)
+ : TQObject(),
out(0),
err(0),
ttySlave(""),
@@ -129,9 +129,9 @@ STTY::STTY(bool ext, const QString &termAppName)
} else {
fout = findTTY();
if (fout >= 0) {
- ttySlave = QString(tty_slave);
- out = new QSocketNotifier(fout, QSocketNotifier::Read, this);
- connect( out, SIGNAL(activated(int)), this, SLOT(OutReceived(int)) );
+ ttySlave = TQString(tty_slave);
+ out = new TQSocketNotifier(fout, TQSocketNotifier::Read, this);
+ connect( out, TQT_SIGNAL(activated(int)), this, TQT_SLOT(OutReceived(int)) );
}
}
}
@@ -270,9 +270,9 @@ void STTY::OutReceived(int f)
#define FIFO_FILE "/tmp/debug_tty.XXXXXX"
-bool STTY::findExternalTTY(const QString &termApp)
+bool STTY::findExternalTTY(const TQString &termApp)
{
- QString appName(termApp.isEmpty() ? QString("xterm") : termApp);
+ TQString appName(termApp.isEmpty() ? TQString("xterm") : termApp);
char fifo[] = FIFO_FILE;
int fifo_fd;
@@ -303,8 +303,8 @@ bool STTY::findExternalTTY(const QString &termApp)
*/
const char* prog = appName.latin1();
- QString script = QString("tty>") + QString(fifo) +
- QString(";" // fifo name
+ TQString script = TQString("tty>") + TQString(fifo) +
+ TQString(";" // fifo name
"trap \"\" INT QUIT TSTP;" // ignore various signals
"exec<&-;exec>&-;" // close stdin and stdout
"while :;do sleep 3600;done");