summaryrefslogtreecommitdiffstats
path: root/noatun/modules/winskin/waInfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/winskin/waInfo.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/winskin/waInfo.cpp')
-rw-r--r--noatun/modules/winskin/waInfo.cpp34
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;
}