diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kimgio/hdr.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio/hdr.cpp')
-rw-r--r-- | kimgio/hdr.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kimgio/hdr.cpp b/kimgio/hdr.cpp index edc49f91b..bf8bc5f03 100644 --- a/kimgio/hdr.cpp +++ b/kimgio/hdr.cpp @@ -10,8 +10,8 @@ #include "hdr.h" -#include <qimage.h> -#include <qdatastream.h> +#include <tqimage.h> +#include <tqdatastream.h> #include <kdebug.h> #include <kglobal.h> @@ -33,7 +33,7 @@ namespace { // Private. // read an old style line from the hdr image file // if 'first' is true the first byte is already read - static bool Read_Old_Line (uchar * image, int width, QDataStream & s) + static bool Read_Old_Line (uchar * image, int width, TQDataStream & s) { int rshift = 0; int i; @@ -94,7 +94,7 @@ namespace { // Private. } // Load the HDR image. - static bool LoadHDR( QDataStream & s, const int width, const int height, QImage & img ) + static bool LoadHDR( TQDataStream & s, const int width, const int height, TQImage & img ) { uchar val, code; @@ -104,7 +104,7 @@ namespace { // Private. return false; } - QMemArray<uchar> image( width * 4 ); + TQMemArray<uchar> image( width * 4 ); for (int cline = 0; cline < height; cline++) { @@ -199,7 +199,7 @@ namespace { // Private. } // namespace -KDE_EXPORT void kimgio_hdr_read( QImageIO * io ) +KDE_EXPORT void kimgio_hdr_read( TQImageIO * io ) { int len; char line[MAXLINE]; @@ -242,9 +242,9 @@ KDE_EXPORT void kimgio_hdr_read( QImageIO * io ) return; } - QDataStream s( io->ioDevice() ); + TQDataStream s( io->ioDevice() ); - QImage img; + TQImage img; if( !LoadHDR(s, width, height, img) ) { kdDebug(399) << "Error loading HDR file." << endl; @@ -258,7 +258,7 @@ KDE_EXPORT void kimgio_hdr_read( QImageIO * io ) } -KDE_EXPORT void kimgio_hdr_write( QImageIO * ) +KDE_EXPORT void kimgio_hdr_write( TQImageIO * ) { // intentionally not implemented (since writing low dynamic range data to a HDR file is nonsense.) } |