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 --- kpovmodeler/pmheightfieldroam.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kpovmodeler/pmheightfieldroam.cpp') diff --git a/kpovmodeler/pmheightfieldroam.cpp b/kpovmodeler/pmheightfieldroam.cpp index d4809aac..87856155 100644 --- a/kpovmodeler/pmheightfieldroam.cpp +++ b/kpovmodeler/pmheightfieldroam.cpp @@ -180,7 +180,7 @@ bool PMHeightFieldROAM::imageToData(const TQString &fileName) colourIndex = false; else { - scaledMap = scaledMap.convertDepthWithPalette( 8, mapFile.colorTable( ), 256 ); + scaledMap = scaledMap.convertDepthWithPalette( 8, mapFile.tqcolorTable( ), 256 ); colourIndex = true; } @@ -191,8 +191,8 @@ bool PMHeightFieldROAM::imageToData(const TQString &fileName) if ( colourIndex ) setHeight( x, y2, scaledMap.pixelIndex( x, y ) * 256 ); else - setHeight( x, y2, ( 256 * qRed( scaledMap.pixel( x, y ) ) ) + - qGreen( scaledMap.pixel( x, y ) ) ); + setHeight( x, y2, ( 256 * tqRed( scaledMap.pixel( x, y ) ) ) + + tqGreen( scaledMap.pixel( x, y ) ) ); } } -- cgit v1.2.1