summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/pixmaplabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/pixmaplabel.cpp')
-rw-r--r--kommander/widgets/pixmaplabel.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kommander/widgets/pixmaplabel.cpp b/kommander/widgets/pixmaplabel.cpp
index 7d7095e3..78077c5c 100644
--- a/kommander/widgets/pixmaplabel.cpp
+++ b/kommander/widgets/pixmaplabel.cpp
@@ -14,12 +14,12 @@
***************************************************************************/
/* QT INCLUDES */
-#include <qobject.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
-#include <qevent.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
+#include <tqpixmap.h>
/* KDE INCLUDES */
#include <kglobal.h>
@@ -30,10 +30,10 @@
#include <specials.h>
#include "pixmaplabel.h"
-PixmapLabel::PixmapLabel(QWidget *a_parent, const char *a_name)
- : QLabel(a_parent, a_name), KommanderWidget(this)
+PixmapLabel::PixmapLabel(TQWidget *a_parent, const char *a_name)
+ : TQLabel(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
@@ -46,9 +46,9 @@ PixmapLabel::~PixmapLabel()
{
}
-QString PixmapLabel::currentState() const
+TQString PixmapLabel::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool PixmapLabel::isKommanderWidget() const
@@ -56,22 +56,22 @@ bool PixmapLabel::isKommanderWidget() const
return true;
}
-QStringList PixmapLabel::associatedText() const
+TQStringList PixmapLabel::associatedText() const
{
return KommanderWidget::associatedText();
}
-void PixmapLabel::setAssociatedText(const QStringList& a_at)
+void PixmapLabel::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void PixmapLabel::setPopulationText(const QString& a_text)
+void PixmapLabel::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString PixmapLabel::populationText() const
+TQString PixmapLabel::populationText() const
{
return KommanderWidget::populationText();
}
@@ -81,23 +81,23 @@ void PixmapLabel::populate()
setWidgetText(KommanderWidget::evalAssociatedText(populationText()));
}
-void PixmapLabel::setWidgetText(const QString& a_text)
+void PixmapLabel::setWidgetText(const TQString& a_text)
{
- QPixmap pixmap;
+ TQPixmap pixmap;
if (pixmap.load(a_text))
setPixmap(pixmap);
}
-void PixmapLabel::showEvent(QShowEvent *e)
+void PixmapLabel::showEvent(TQShowEvent *e)
{
- QLabel::showEvent(e);
+ TQLabel::showEvent(e);
emit widgetOpened();
}
-void PixmapLabel::contextMenuEvent( QContextMenuEvent * e )
+void PixmapLabel::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -106,27 +106,27 @@ bool PixmapLabel::isFunctionSupported(int f)
return f == DCOP::text || f == DCOP::setText || f == DCOP::clear || f == DCOP::geometry;
}
-QString PixmapLabel::handleDCOP(int function, const QStringList& args)
+TQString PixmapLabel::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::setText:
setWidgetText(args[0]);
break;
case DCOP::clear:
- setPixmap(QPixmap());
+ setPixmap(TQPixmap());
break;
case DCOP::text:
return text();
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;
}
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}
#include "pixmaplabel.moc"