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 --- kviewshell/renderedDocumentPagePixmap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kviewshell/renderedDocumentPagePixmap.cpp') diff --git a/kviewshell/renderedDocumentPagePixmap.cpp b/kviewshell/renderedDocumentPagePixmap.cpp index f7f91ed9..fc8edade 100644 --- a/kviewshell/renderedDocumentPagePixmap.cpp +++ b/kviewshell/renderedDocumentPagePixmap.cpp @@ -71,7 +71,7 @@ TQPixmap RenderedDocumentPagePixmap::accessiblePixmap() { case KVSPrefs::EnumRenderMode::Inverted: // Invert image pixels using TQImage internal function - backImage.invertPixels(false); + backImage.tqinvertPixels(false); break; case KVSPrefs::EnumRenderMode::Recolor: // Recolor image using KImageEffect::flatten with dither:0 @@ -87,7 +87,7 @@ TQPixmap RenderedDocumentPagePixmap::accessiblePixmap() for( int i = 0; i < pixels; ++i ) { - val = qGray(data[i]); + val = tqGray(data[i]); if (val > thr) val = 128 + (127 * (val - thr)) / (255 - thr); else if ( val < thr ) @@ -100,7 +100,7 @@ TQPixmap RenderedDocumentPagePixmap::accessiblePixmap() else if (val < 0) val = 0; } - data[i] = qRgba(val, val, val, 255); + data[i] = tqRgba(val, val, val, 255); } break; } -- cgit v1.2.1