summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/kjofol-skin/kjwidget.cpp')
-rw-r--r--noatun/modules/kjofol-skin/kjwidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/noatun/modules/kjofol-skin/kjwidget.cpp b/noatun/modules/kjofol-skin/kjwidget.cpp
index e7b6a4d1..b46fb651 100644
--- a/noatun/modules/kjofol-skin/kjwidget.cpp
+++ b/noatun/modules/kjofol-skin/kjwidget.cpp
@@ -12,15 +12,15 @@
// ugly static functions and stuff
#include "helpers.cpp"
-#include <qpainter.h>
+#include <tqpainter.h>
KJWidget::KJWidget(KJLoader *p) : mParent(p)
{
}
-QBitmap KJWidget::getMask(const QImage &_rect, register QRgb transparent)
+TQBitmap KJWidget::getMask(const TQImage &_rect, register QRgb transparent)
{
- QImage result(_rect.width(), _rect.height(), 1,2, QImage::LittleEndian);
+ TQImage result(_rect.width(), _rect.height(), 1,2, TQImage::LittleEndian);
#if QT_VERSION < 0x030300
result.setColor(0, qRgb(0,0,0)); //TODO: maybe use Qt::color0 and Qt::color1
result.setColor(1, qRgb(255,255,255));
@@ -34,36 +34,36 @@ QBitmap KJWidget::getMask(const QImage &_rect, register QRgb transparent)
for(int width=0; width<_rect.width(); width++)
setPixel1BPP(result, width, height, _rect.pixel(width, height)!=transparent);
}
- QBitmap bm;
+ TQBitmap bm;
bm.convertFromImage(result);
return bm;
}
-void KJWidget::repaint(bool me, const QRect &r, bool clear)
+void KJWidget::repaint(bool me, const TQRect &r, bool clear)
{
- QPainter p(parent());
+ TQPainter p(parent());
if (me)
paint(&p, r.isValid() ? r : rect());
else
parent()->repaint(r.isValid() ? r : rect(), clear);
}
-const QString &KJWidget::backgroundPressed(const QString &bmp) const
+const TQString &KJWidget::backgroundPressed(const TQString &bmp) const
{
if(bmp.isEmpty()) // play safe
{
-// kdDebug(66666) << k_funcinfo << "empty argument 'bmp', returning QString::null!" << endl;
- return QString::null;
+// kdDebug(66666) << k_funcinfo << "empty argument 'bmp', returning TQString::null!" << endl;
+ return TQString::null;
}
// kdDebug(66666) << k_funcinfo << "Returning pressed pixmap for '" << bmp.latin1() << "'" << endl;
// make absolutely sure the wanted backgroundimagepressedX line is there
- QStringList item = parser()["backgroundimagepressed"+QString::number(bmp.mid(3).toInt())];
+ TQStringList item = parser()["backgroundimagepressed"+TQString::number(bmp.mid(3).toInt())];
if(item.count() < 2)
{
// kdDebug(66666) << k_funcinfo << "backgroundimagepressed doesn't have enough keys in its line!" << endl;
- return QString::null;
+ return TQString::null;
}
else
return item[1];