From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksvg/impl/SVGColorProfileElementImpl.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ksvg/impl/SVGColorProfileElementImpl.cc') diff --git a/ksvg/impl/SVGColorProfileElementImpl.cc b/ksvg/impl/SVGColorProfileElementImpl.cc index 385a836b..7890f07e 100644 --- a/ksvg/impl/SVGColorProfileElementImpl.cc +++ b/ksvg/impl/SVGColorProfileElementImpl.cc @@ -229,12 +229,12 @@ void SVGColorProfileElementImpl::closeColorProfile() cmsCloseProfile(m_hInput); } -QRgb SVGColorProfileElementImpl::correctPixel(float r, float g, float b) +TQRgb SVGColorProfileElementImpl::correctPixel(float r, float g, float b) { if(!m_loaded) { if(!loadColorProfile()) - return qRgb(0, 0, 0); + return tqRgb(0, 0, 0); } unsigned short input[MAXCHANNELS], output[MAXCHANNELS]; @@ -246,9 +246,9 @@ QRgb SVGColorProfileElementImpl::correctPixel(float r, float g, float b) cmsDoTransform(m_hTrans, input, output, 1); if(m_outputColorSpace == icSigRgbData) - return qRgb(output[0] / 257, output[1] / 257, output[2] / 257); + return tqRgb(output[0] / 257, output[1] / 257, output[2] / 257); - return qRgb(0, 0, 0); + return tqRgb(0, 0, 0); } TQImage *SVGColorProfileElementImpl::correctImage(TQImage *input) @@ -260,8 +260,8 @@ TQImage *SVGColorProfileElementImpl::correctImage(TQImage *input) { for(int x = 0; x < input->width(); x++) { - QRgb pixel = input->pixel(x, y); - input->setPixel(x, y, correctPixel(qRed(pixel), qGreen(pixel), qBlue(pixel))); + TQRgb pixel = input->pixel(x, y); + input->setPixel(x, y, correctPixel(tqRed(pixel), tqGreen(pixel), tqBlue(pixel))); } } -- cgit v1.2.3