From 2bc11f9dc783f26bf99f44515e92e49e8d2348fc Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sat, 26 Jun 2021 16:06:40 +0300 Subject: =?UTF-8?q?Conversion=20Qt3=E2=86=92TQt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mavridis Philippe --- client/shadow.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'client/shadow.cpp') diff --git a/client/shadow.cpp b/client/shadow.cpp index d17c936..09b813a 100644 --- a/client/shadow.cpp +++ b/client/shadow.cpp @@ -32,7 +32,7 @@ /////////////////////////////////////////////////////////////////////// #include "shadow.h" -#include +#include ShadowEngine::ShadowEngine() { @@ -44,9 +44,9 @@ ShadowEngine::~ShadowEngine() { } -QImage ShadowEngine::makeShadow(const QPixmap& textPixmap, const QColor &bgColor) +TQImage ShadowEngine::makeShadow(const TQPixmap& textPixmap, const TQColor &bgColor) { - QImage result; + TQImage result; // create a new image for for the shaddow int w = textPixmap.width(); @@ -62,7 +62,7 @@ QImage ShadowEngine::makeShadow(const QPixmap& textPixmap, const QColor &bgColor /* * This is the source pixmap */ - QImage img = textPixmap.convertToImage().convertDepth(32); + TQImage img = textPixmap.convertToImage().convertDepth(32); /* * Resize the image if necessary @@ -82,13 +82,13 @@ QImage ShadowEngine::makeShadow(const QPixmap& textPixmap, const QColor &bgColor alphaShadow = decay(img, i, j); alphaShadow = (alphaShadow > 180.0) ? 180.0 : alphaShadow; // update the shadow's i,j pixel. - result.setPixel(i,j, qRgba(bgRed, bgGreen , bgBlue, (int) alphaShadow)); + result.setPixel(i,j, tqRgba(bgRed, bgGreen , bgBlue, (int) alphaShadow)); } } return result; } -double ShadowEngine::decay(QImage& source, int i, int j) +double ShadowEngine::decay(TQImage& source, int i, int j) { // create a new image for the shadow int w = source.width(); @@ -120,7 +120,7 @@ double ShadowEngine::decay(QImage& source, int i, int j) else sy = j + m; - opacity += qGray(source.pixel(sx, sy)); + opacity += tqGray(source.pixel(sx, sy)); } } alphaShadow += opacity / multiplicationFactor_; -- cgit v1.2.1