summaryrefslogtreecommitdiffstats
path: root/noatun/modules
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-03 00:48:40 +0900
committerMichele Calgaro <[email protected]>2023-12-04 00:09:20 +0900
commit8729e642eaa3629412ef948e590e35ade2cbb0ea (patch)
tree9cd328109582173ccd1e329e4a5a5f608ebb0028 /noatun/modules
parent7ef70d6552605c1df5653f039314c3ac568069cc (diff)
downloadtdemultimedia-8729e642eaa3629412ef948e590e35ade2cbb0ea.tar.gz
tdemultimedia-8729e642eaa3629412ef948e590e35ade2cbb0ea.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'noatun/modules')
-rw-r--r--noatun/modules/winskin/waDigit.cpp12
-rw-r--r--noatun/modules/winskin/waInfo.cpp4
-rw-r--r--noatun/modules/winskin/waLabel.cpp2
-rw-r--r--noatun/modules/winskin/waWidget.cpp16
-rw-r--r--noatun/modules/winskin/waWidget.h2
5 files changed, 18 insertions, 18 deletions
diff --git a/noatun/modules/winskin/waDigit.cpp b/noatun/modules/winskin/waDigit.cpp
index 3e953e6b..1feb3851 100644
--- a/noatun/modules/winskin/waDigit.cpp
+++ b/noatun/modules/winskin/waDigit.cpp
@@ -57,24 +57,24 @@ void WaDigit::paintEvent(TQPaintEvent *)
// continue parsing
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_MINUS);
if (len == 6) {
- waSkinModel->getDigit('-', TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit('-', this, mapRect.x() - x, mapRect.y() - y);
time++;
}
else {
- waSkinModel->getDigit(' ', TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(' ', this, mapRect.x() - x, mapRect.y() - y);
}
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_1);
- waSkinModel->getDigit(time[0], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[0], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_2);
- waSkinModel->getDigit(time[1], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[1], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_3);
- waSkinModel->getDigit(time[3], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[3], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_4);
- waSkinModel->getDigit(time[4], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[4], this, mapRect.x() - x, mapRect.y() - y);
}
void WaDigit::mousePressEvent(TQMouseEvent* e) {
diff --git a/noatun/modules/winskin/waInfo.cpp b/noatun/modules/winskin/waInfo.cpp
index af64ecc2..97f21606 100644
--- a/noatun/modules/winskin/waInfo.cpp
+++ b/noatun/modules/winskin/waInfo.cpp
@@ -132,7 +132,7 @@ void WaInfo::pixmapChange()
completePixmap->resize(TQMAX(n * _WA_TEXT_WIDTH, size.width()), _WA_TEXT_HEIGHT);
for (i = 0; i < n; i++) {
- WaSkinModel::instance()->getText(infoString[i], TQT_TQPAINTDEVICE(completePixmap), x, 0);
+ WaSkinModel::instance()->getText(infoString[i], completePixmap, x, 0);
x += _WA_TEXT_WIDTH;
}
@@ -140,7 +140,7 @@ void WaInfo::pixmapChange()
// fill the pixmap with spaces
if (x < size.width()) {
while (x < size.width()) {
- WaSkinModel::instance()->getText(' ', TQT_TQPAINTDEVICE(completePixmap), x, 0);
+ WaSkinModel::instance()->getText(' ', completePixmap, x, 0);
x += _WA_TEXT_WIDTH;
}
}
diff --git a/noatun/modules/winskin/waLabel.cpp b/noatun/modules/winskin/waLabel.cpp
index 71f2baa2..54b7513b 100644
--- a/noatun/modules/winskin/waLabel.cpp
+++ b/noatun/modules/winskin/waLabel.cpp
@@ -58,7 +58,7 @@ void WaLabel::pixmapChange()
int n = label_text ? strlen(label_text) : 0;
for (int i = 0; i < n; i++)
- WaSkinModel::instance()->getText(label_text[i], TQT_TQPAINTDEVICE(completePixmap),
+ WaSkinModel::instance()->getText(label_text[i], completePixmap,
i * _WA_TEXT_WIDTH, 0);
}
diff --git a/noatun/modules/winskin/waWidget.cpp b/noatun/modules/winskin/waWidget.cpp
index 69f797f5..48e6eb24 100644
--- a/noatun/modules/winskin/waWidget.cpp
+++ b/noatun/modules/winskin/waWidget.cpp
@@ -14,31 +14,31 @@ WaWidget::~WaWidget() {
void WaWidget::paintPixmap(int pixmap_mapping) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, 0, 0);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0);
}
void WaWidget::paintPixmap(int pixmap_mapping, int x, int y) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, x, y);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, x, y);
}
void WaWidget::paintPixmap(int pixmap_mapping, int argument) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), 0, 0, argument);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, 0, 0, argument);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0);
}
void WaWidget::paintPixmap(int pixmap_mapping, int argument, int x, int y) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), x, y, argument);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, x, y, argument);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, x, y);
}
TQSize WaWidget::sizeHint() {
diff --git a/noatun/modules/winskin/waWidget.h b/noatun/modules/winskin/waWidget.h
index 81f12f14..3f2f018a 100644
--- a/noatun/modules/winskin/waWidget.h
+++ b/noatun/modules/winskin/waWidget.h
@@ -19,7 +19,7 @@ public:
void paintPixmap(int wa_mapping, int x, int y);
void paintPixmap(int wa_mapping, int number, int x, int y);
- void paintBackground() { WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0); }
+ void paintBackground() { WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0); }
protected:
void mousePressEvent(TQMouseEvent *);