summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/closebutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/closebutton.cpp')
-rw-r--r--kommander/widgets/closebutton.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kommander/widgets/closebutton.cpp b/kommander/widgets/closebutton.cpp
index 9da9f1a0..d30a9346 100644
--- a/kommander/widgets/closebutton.cpp
+++ b/kommander/widgets/closebutton.cpp
@@ -19,45 +19,45 @@
#include <klocale.h>
/* QT INCLUDES */
-#include <qdialog.h>
-#include <qevent.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qwidget.h>
+#include <tqdialog.h>
+#include <tqevent.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqwidget.h>
/* OTHER INCLUDES */
#include <specials.h>
#include "closebutton.h"
-CloseButton::CloseButton(QWidget* a_parent, const char* a_name)
+CloseButton::CloseButton(TQWidget* a_parent, const char* a_name)
: KPushButton(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
setWriteStdout(true);
- connect(this, SIGNAL(clicked()), this, SLOT(startProcess()));
+ connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(startProcess()));
- QObject *parent = this;
+ TQObject *parent = this;
while (parent->parent() != 0)
{
parent = parent->parent();
- if (parent->inherits("QDialog"))
+ if (parent->inherits("TQDialog"))
break;
}
- connect(this, SIGNAL(clicked()), parent, SLOT(reject()));
+ connect(this, TQT_SIGNAL(clicked()), parent, TQT_SLOT(reject()));
}
CloseButton::~CloseButton()
{
}
-QString CloseButton::currentState() const
+TQString CloseButton::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool CloseButton::isKommanderWidget() const
@@ -65,22 +65,22 @@ bool CloseButton::isKommanderWidget() const
return true;
}
-QStringList CloseButton::associatedText() const
+TQStringList CloseButton::associatedText() const
{
return KommanderWidget::associatedText();
}
-void CloseButton::setAssociatedText(const QStringList& a_at)
+void CloseButton::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void CloseButton::setPopulationText(const QString& a_text)
+void CloseButton::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString CloseButton::populationText() const
+TQString CloseButton::populationText() const
{
return KommanderWidget::populationText();
}
@@ -90,7 +90,7 @@ void CloseButton::populate()
setWidgetText(KommanderWidget::evalAssociatedText(populationText()));
}
-void CloseButton::setWidgetText(const QString& a_text)
+void CloseButton::setWidgetText(const TQString& a_text)
{
setText(a_text);
emit widgetTextChanged(a_text);
@@ -98,17 +98,17 @@ void CloseButton::setWidgetText(const QString& a_text)
void CloseButton::startProcess()
{
- QString at = evalAssociatedText();
+ TQString at = evalAssociatedText();
if (!at.isEmpty())
{
KShellProcess *process = new KShellProcess("/bin/sh");
*process << at;
- connect(process, SIGNAL(processExited(KProcess *)), SLOT(endProcess(KProcess *)));
- connect(process, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(appendOutput(KProcess *,
+ connect(process, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(endProcess(KProcess *)));
+ connect(process, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(appendOutput(KProcess *,
char *, int)));
- connect(process, SIGNAL(receivedStderr(KProcess *, char *, int)), SLOT(appendOutput(KProcess *,
+ connect(process, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), TQT_SLOT(appendOutput(KProcess *,
char *, int)));
if (!process->start(KProcess::Block, KProcess::Stdout))
@@ -128,7 +128,7 @@ void CloseButton::appendOutput(KProcess *, char *a_buffer, int a_len)
for (int i = 0; i < a_len; ++i)
buffer[i] = a_buffer[i];
- QString bufferString(buffer);
+ TQString bufferString(buffer);
m_output += bufferString;
if (writeStdout())
{
@@ -155,9 +155,9 @@ void CloseButton::setWriteStdout(bool a_enable)
m_writeStdout = a_enable;
}
-void CloseButton::showEvent(QShowEvent *e)
+void CloseButton::showEvent(TQShowEvent *e)
{
- QPushButton::showEvent(e);
+ TQPushButton::showEvent(e);
emit widgetOpened();
}
@@ -166,7 +166,7 @@ bool CloseButton::isFunctionSupported(int f)
return f == DCOP::text || f == DCOP::setText;
}
-QString CloseButton::handleDCOP(int function, const QStringList& args)
+TQString CloseButton::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
@@ -177,7 +177,7 @@ QString CloseButton::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}
#include "closebutton.moc"