diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-27 21:28:15 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-31 09:54:38 +0900 |
commit | 8e1816900bb891be1f9e1268e2971d2e151e23a9 (patch) | |
tree | b17c08a6298a7bb7c11ce75e06b417ecdfd52723 /kicker/libkicker | |
parent | eb0d989c939662a38265ff9116989080a3082cc5 (diff) | |
download | tdebase-8e1816900bb891be1f9e1268e2971d2e151e23a9.tar.gz tdebase-8e1816900bb891be1f9e1268e2971d2e151e23a9.zip |
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 014f6d2586905e03681aa6fb9a85c2c8190e53f4)
Diffstat (limited to 'kicker/libkicker')
-rw-r--r-- | kicker/libkicker/global.cpp | 9 |
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; |