diff options
Diffstat (limited to 'noatun/modules/winskin/waInfo.cpp')
-rw-r--r-- | noatun/modules/winskin/waInfo.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/noatun/modules/winskin/waInfo.cpp b/noatun/modules/winskin/waInfo.cpp index c735a8e4..d64191da 100644 --- a/noatun/modules/winskin/waInfo.cpp +++ b/noatun/modules/winskin/waInfo.cpp @@ -12,8 +12,8 @@ */ -#include <qpainter.h> -#include <qpixmap.h> +#include <tqpainter.h> +#include <tqpixmap.h> #include <stdlib.h> @@ -25,18 +25,18 @@ WaInfo::WaInfo() : WaWidget(_WA_MAPPING_INFO) { - connect(WaSkinModel::instance(), SIGNAL(skinChanged()), - this, SLOT(pixmapChange())); + connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()), + this, TQT_SLOT(pixmapChange())); - completePixmap = new QPixmap(); + completePixmap = new TQPixmap(); - QSize size = sizeHint(); + TQSize size = sizeHint(); completePixmap->resize(size.width(), size.height()); xGrabbedPos = -1; - timer = new QTimer(this); - connect(timer, SIGNAL(timeout()), this, SLOT(timeEvent())); + timer = new TQTimer(this); + connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeEvent())); } WaInfo::~WaInfo() @@ -65,7 +65,7 @@ void WaInfo::scrollerSetup() xScrollPos = 0; xScrollDirection = 0; timer->stop(); - QSize size = sizeHint(); + TQSize size = sizeHint(); if (completePixmap->width() > size.width()) { xScrollDirection = 1; @@ -77,9 +77,9 @@ void WaInfo::scrollerSetup() } } -void WaInfo::paintEvent(QPaintEvent *) +void WaInfo::paintEvent(TQPaintEvent *) { - QSize size = sizeHint(); + TQSize size = sizeHint(); if (completePixmap->width() <= size.width()) { bitBlt(this, 0, 0, completePixmap); @@ -105,7 +105,7 @@ void WaInfo::paintEvent(QPaintEvent *) } -void WaInfo::setText(QString song) +void WaInfo::setText(TQString song) { if (_text != song) { _text = song; @@ -113,7 +113,7 @@ void WaInfo::setText(QString song) } } -QString WaInfo::text() const +TQString WaInfo::text() const { return _text; } @@ -127,7 +127,7 @@ void WaInfo::pixmapChange() int x = 0; int n=infoString ? strlen(infoString) : 0; - QSize size = sizeHint(); + TQSize size = sizeHint(); completePixmap->resize(QMAX(n * _WA_TEXT_WIDTH, size.width()), _WA_TEXT_HEIGHT); @@ -149,12 +149,12 @@ void WaInfo::pixmapChange() update(); } -void WaInfo::mousePressEvent (QMouseEvent *e) { +void WaInfo::mousePressEvent (TQMouseEvent *e) { if (e->button() == LeftButton) xGrabbedPos = (e->x() + xScrollPos) % completePixmap->width(); } -void WaInfo::mouseMoveEvent (QMouseEvent * e) { +void WaInfo::mouseMoveEvent (TQMouseEvent * e) { xScrollPos = -e->x() + xGrabbedPos; if (xScrollPos < 0) @@ -165,7 +165,7 @@ void WaInfo::mouseMoveEvent (QMouseEvent * e) { update(); } -void WaInfo::mouseReleaseEvent (QMouseEvent *) { +void WaInfo::mouseReleaseEvent (TQMouseEvent *) { xGrabbedPos = -1; } |