summaryrefslogtreecommitdiffstats
path: root/kviewshell/renderedDocumentPagePixmap.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kviewshell/renderedDocumentPagePixmap.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'kviewshell/renderedDocumentPagePixmap.cpp')
-rw-r--r--kviewshell/renderedDocumentPagePixmap.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}