diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-26 14:53:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-31 10:10:06 +0900 |
commit | e8f6750e65767709575720eb6da1402e6ef20bad (patch) | |
tree | d1d2db5eff55dc1f66155b8f4ef2ba260a1b1b3c /tdefx/kimageeffect.cpp | |
parent | 97fea74e68727e260cb1901763ad4d43f7f96342 (diff) | |
download | tdelibs-e8f6750e65767709575720eb6da1402e6ef20bad.tar.gz tdelibs-e8f6750e65767709575720eb6da1402e6ef20bad.zip |
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 57af4f9d87ac88216a3bbcebaeed55db07a8948d)
Diffstat (limited to 'tdefx/kimageeffect.cpp')
-rw-r--r-- | tdefx/kimageeffect.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tdefx/kimageeffect.cpp b/tdefx/kimageeffect.cpp index 277e1cc7f..bba2e4952 100644 --- a/tdefx/kimageeffect.cpp +++ b/tdefx/kimageeffect.cpp @@ -1079,11 +1079,6 @@ TQImage& KImageEffect::blend(const TQColor& clr, TQImage& dst, float opacity) if (dst.depth() != 32) dst = dst.convertDepth(32); -#ifdef USE_QT4 - if (dst.format() != QImage::Format_ARGB32) - dst = dst.convertToFormat(QImage::Format_ARGB32); // This is needed because Qt4 has multiple variants with a 32 bit depth, and the routines below expect one specific variant (ARGB) -#endif - int pixels = dst.width() * dst.height(); #ifdef USE_SSE2_INLINE_ASM @@ -1334,13 +1329,6 @@ TQImage& KImageEffect::blend(TQImage& src, TQImage& dst, float opacity) if (src.depth() != 32) src = src.convertDepth(32); if (dst.depth() != 32) dst = dst.convertDepth(32); -#ifdef USE_QT4 - if (src.format() != QImage::Format_ARGB32) - src = dst.convertToFormat(QImage::Format_ARGB32); // This is needed because Qt4 has multiple variants with a 32 bit depth, and the routines below expect one specific variant (ARGB) - if (dst.format() != QImage::Format_ARGB32) - dst = dst.convertToFormat(QImage::Format_ARGB32); // This is needed because Qt4 has multiple variants with a 32 bit depth, and the routines below expect one specific variant (ARGB) -#endif - int pixels = src.width() * src.height(); #ifdef USE_SSE2_INLINE_ASM |