summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/label.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/label.cpp')
-rw-r--r--kommander/widgets/label.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kommander/widgets/label.cpp b/kommander/widgets/label.cpp
index a9a24e3b..ee422325 100644
--- a/kommander/widgets/label.cpp
+++ b/kommander/widgets/label.cpp
@@ -14,21 +14,21 @@
***************************************************************************/
/* QT INCLUDES */
-#include <qobject.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
-#include <qevent.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
/* OTHER INCLUDES */
#include <kommanderwidget.h>
#include <specials.h>
#include "label.h"
-Label::Label(QWidget *a_parent, const char *a_name)
- : QLabel(a_parent, a_name), KommanderWidget(this)
+Label::Label(TQWidget *a_parent, const char *a_name)
+ : TQLabel(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
@@ -40,9 +40,9 @@ Label::~Label()
{
}
-QString Label::currentState() const
+TQString Label::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool Label::isKommanderWidget() const
@@ -50,22 +50,22 @@ bool Label::isKommanderWidget() const
return true;
}
-QStringList Label::associatedText() const
+TQStringList Label::associatedText() const
{
return KommanderWidget::associatedText();
}
-void Label::setAssociatedText(const QStringList& a_at)
+void Label::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void Label::setPopulationText(const QString& a_text)
+void Label::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString Label::populationText() const
+TQString Label::populationText() const
{
return KommanderWidget::populationText();
}
@@ -75,14 +75,14 @@ void Label::populate()
setWidgetText(KommanderWidget::evalAssociatedText(populationText()));
}
-void Label::setWidgetText(const QString& a_text)
+void Label::setWidgetText(const TQString& a_text)
{
setText(a_text);
}
-void Label::showEvent(QShowEvent *e)
+void Label::showEvent(TQShowEvent *e)
{
- QLabel::showEvent(e);
+ TQLabel::showEvent(e);
emit widgetOpened();
}
@@ -91,7 +91,7 @@ bool Label::isFunctionSupported(int f)
return f == DCOP::text || f == DCOP::setText || f == DCOP::clear || f == DCOP::geometry || f == DCOP::getBackgroundColor || f == DCOP::setBackgroundColor;
}
-QString Label::handleDCOP(int function, const QStringList& args)
+TQString Label::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
@@ -104,7 +104,7 @@ QString Label::handleDCOP(int function, const QStringList& args)
break;
case DCOP::geometry:
{
- QString geo = QString::number(this->x())+" "+QString::number(this->y())+" "+QString::number(this->width())+" "+QString::number(this->height());
+ TQString geo = TQString::number(this->x())+" "+TQString::number(this->y())+" "+TQString::number(this->width())+" "+TQString::number(this->height());
return geo;
break;
}
@@ -113,7 +113,7 @@ QString Label::handleDCOP(int function, const QStringList& args)
break;
case DCOP::setBackgroundColor:
{
- QColor color;
+ TQColor color;
color.setNamedColor(args[0]);
this->setPaletteBackgroundColor(color);
break;
@@ -121,7 +121,7 @@ QString Label::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}
#include "label.moc"