summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/konsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/konsole.cpp')
-rw-r--r--kommander/widgets/konsole.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kommander/widgets/konsole.cpp b/kommander/widgets/konsole.cpp
index 587f2318..c27cb8fe 100644
--- a/kommander/widgets/konsole.cpp
+++ b/kommander/widgets/konsole.cpp
@@ -14,10 +14,10 @@
***************************************************************************/
/* QT INCLUDES */
-#include <qcursor.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qwidget.h>
+#include <tqcursor.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqwidget.h>
/* OTHER INCLUDES */
#include <kommanderwidget.h>
@@ -25,10 +25,10 @@
#include "konsole.h"
#include <myprocess.h>
-Konsole::Konsole(QWidget* a_parent, const char* a_name)
+Konsole::Konsole(TQWidget* a_parent, const char* a_name)
: KTextEdit(a_parent, a_name), KommanderWidget(this), mSeenEOL(false), mProcess(false)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
@@ -38,9 +38,9 @@ Konsole::~Konsole()
{
}
-QString Konsole::currentState() const
+TQString Konsole::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool Konsole::isKommanderWidget() const
@@ -48,48 +48,48 @@ bool Konsole::isKommanderWidget() const
return true;
}
-QStringList Konsole::associatedText() const
+TQStringList Konsole::associatedText() const
{
return KommanderWidget::associatedText();
}
-void Konsole::setAssociatedText(const QStringList& a_at)
+void Konsole::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void Konsole::setPopulationText(const QString& a_text)
+void Konsole::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString Konsole::populationText() const
+TQString Konsole::populationText() const
{
return KommanderWidget::populationText();
}
void Konsole::populate()
{
- QString txt = KommanderWidget::evalAssociatedText(populationText());
+ TQString txt = KommanderWidget::evalAssociatedText(populationText());
setWidgetText(txt);
}
-void Konsole::setWidgetText(const QString&)
+void Konsole::setWidgetText(const TQString&)
{
// FIXME: emit widgetTextChanged(a_text);
}
void Konsole::execute()
{
- QString at = evalAssociatedText().stripWhiteSpace();
+ TQString at = evalAssociatedText().stripWhiteSpace();
if (mProcess)
cancel();
mSeenEOL = false;
mProcess = new MyProcess(this);
mProcess->setBlocking(false);
- connect(mProcess, SIGNAL(processExited(MyProcess*)), SLOT(processExited(MyProcess*)));
- connect(mProcess, SIGNAL(processReceivedStdout(MyProcess*, char*, int)), SLOT(processReceivedStdout(MyProcess*, char*, int)));
- setCursor(QCursor(Qt::WaitCursor));
+ connect(mProcess, TQT_SIGNAL(processExited(MyProcess*)), TQT_SLOT(processExited(MyProcess*)));
+ connect(mProcess, TQT_SIGNAL(processReceivedStdout(MyProcess*, char*, int)), TQT_SLOT(processReceivedStdout(MyProcess*, char*, int)));
+ setCursor(TQCursor(Qt::WaitCursor));
mProcess->run(at);
}
@@ -104,7 +104,7 @@ void Konsole::cancel()
void Konsole::processReceivedStdout(MyProcess*, char* buffer, int buflen)
{
- QString pBuf = QString::fromLocal8Bit(buffer, buflen);
+ TQString pBuf = TQString::fromLocal8Bit(buffer, buflen);
if (mSeenEOL)
pBuf = '\n' + pBuf;
mSeenEOL = pBuf[pBuf.length()-1] == '\n';
@@ -126,7 +126,7 @@ bool Konsole::isFunctionSupported(int f)
return f == DCOP::setText || f == DCOP::text || f == DCOP::clear || f == DCOP::execute || f == DCOP::cancel;
}
-QString Konsole::handleDCOP(int function, const QStringList& args)
+TQString Konsole::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::setText:
@@ -146,7 +146,7 @@ QString Konsole::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}