diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widgets/pixmaplabel.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/pixmaplabel.cpp')
-rw-r--r-- | kommander/widgets/pixmaplabel.cpp | 50 |
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" |