summaryrefslogtreecommitdiffstats
path: root/kicker/libkicker
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-27 21:28:15 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-27 21:28:15 +0900
commit014f6d2586905e03681aa6fb9a85c2c8190e53f4 (patch)
treec5adcc760a4faedd8a7c690963b2c61af1a68325 /kicker/libkicker
parent2317bee2466f4613df68e7d6b7d7eee46befd359 (diff)
downloadtdebase-014f6d2586905e03681aa6fb9a85c2c8190e53f4.tar.gz
tdebase-014f6d2586905e03681aa6fb9a85c2c8190e53f4.zip
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kicker/libkicker')
-rw-r--r--kicker/libkicker/global.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/kicker/libkicker/global.cpp b/kicker/libkicker/global.cpp
index 62f7f055a..8c45d519d 100644
--- a/kicker/libkicker/global.cpp
+++ b/kicker/libkicker/global.cpp
@@ -470,14 +470,9 @@ void drawBlendedRect(TQPainter *p, const TQRect &r, const TQColor &color, int al
if (pix.isNull() || last_color != color || last_alpha != alpha)
{
TQImage img(16, 16, 32);
-#ifdef USE_QT4
+ img.setAlphaBuffer(false);
+ img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
img.setAlphaBuffer(true);
- img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
-#else // USE_QT4
- img.setAlphaBuffer(false);
- img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
- img.setAlphaBuffer(true);
-#endif // USE_QT4
pix.convertFromImage(img);
last_color = color;
last_alpha = alpha;