diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
commit | f7e71d47719ab6094cf4a9fafffa5ea351973522 (patch) | |
tree | 30834aa632d442019e14f88685001d94657d060b /kimgio/hdr.cpp | |
parent | b31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff) | |
download | tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip |
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems
with dependent modules such as kdebase. If it does then it needs to be fixed!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio/hdr.cpp')
-rw-r--r-- | kimgio/hdr.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kimgio/hdr.cpp b/kimgio/hdr.cpp index bf8bc5f03..b96cddcb0 100644 --- a/kimgio/hdr.cpp +++ b/kimgio/hdr.cpp @@ -16,7 +16,7 @@ #include <kdebug.h> #include <kglobal.h> -typedef Q_UINT8 uchar; +typedef TQ_UINT8 uchar; namespace { // Private. @@ -85,7 +85,7 @@ namespace { // Private. v = 1.0f / float(1 << -e); } - scanline[j] = qRgb( ClipToByte(float(image[0]) * v), + scanline[j] = tqRgb( ClipToByte(float(image[0]) * v), ClipToByte(float(image[1]) * v), ClipToByte(float(image[2]) * v) ); @@ -127,7 +127,7 @@ namespace { // Private. if (val != 2) { - s.device()->at( s.device()->at() - 1 ); + s.tqdevice()->at( s.tqdevice()->at() - 1 ); Read_Old_Line(image.data(), width, s); RGBE_To_QRgbLine(image.data(), scanline, width); continue; @@ -224,8 +224,8 @@ KDE_EXPORT void kimgio_hdr_read( TQImageIO * io ) if( /*!validHeader ||*/ !validFormat ) { kdDebug(399) << "Unknown HDR format." << endl; - io->setImage( 0 ); - io->setStatus( -1 ); + io->setImage( TQImage() ); + io->setqStatus( -1 ); return; } @@ -237,8 +237,8 @@ KDE_EXPORT void kimgio_hdr_read( TQImageIO * io ) //if( sscanf(line, "-Y %d +X %d", &height, &width) < 2 ) { kdDebug(399) << "Invalid HDR file." << endl; - io->setImage( 0 ); - io->setStatus( -1 ); + io->setImage( TQImage() ); + io->setqStatus( -1 ); return; } @@ -248,13 +248,13 @@ KDE_EXPORT void kimgio_hdr_read( TQImageIO * io ) if( !LoadHDR(s, width, height, img) ) { kdDebug(399) << "Error loading HDR file." << endl; - io->setImage( 0 ); - io->setStatus( -1 ); + io->setImage( TQImage() ); + io->setqStatus( -1 ); return; } io->setImage( img ); - io->setStatus( 0 ); + io->setqStatus( 0 ); } |