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/tga.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/tga.cpp')
-rw-r--r-- | kimgio/tga.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kimgio/tga.cpp b/kimgio/tga.cpp index 2a227d077..8fb5fbd7f 100644 --- a/kimgio/tga.cpp +++ b/kimgio/tga.cpp @@ -22,8 +22,8 @@ #include <assert.h> -#include <qimage.h> -#include <qdatastream.h> +#include <tqimage.h> +#include <tqdatastream.h> #include <kdebug.h> @@ -74,7 +74,7 @@ namespace { // Private. enum { SIZE = 18 }; // const static int SIZE = 18; }; - static QDataStream & operator>> ( QDataStream & s, TgaHeader & head ) + static TQDataStream & operator>> ( TQDataStream & s, TgaHeader & head ) { s >> head.id_length; s >> head.colormap_type; @@ -169,7 +169,7 @@ namespace { // Private. } }; - static bool LoadTGA( QDataStream & s, const TgaHeader & tga, QImage &img ) + static bool LoadTGA( TQDataStream & s, const TgaHeader & tga, TQImage &img ) { // Create image. if( !img.create( tga.width, tga.height, 32 )) { @@ -313,12 +313,12 @@ namespace { // Private. } // namespace -KDE_EXPORT void kimgio_tga_read( QImageIO *io ) +KDE_EXPORT void kimgio_tga_read( TQImageIO *io ) { //kdDebug(399) << "Loading TGA file!" << endl; - QDataStream s( io->ioDevice() ); - s.setByteOrder( QDataStream::LittleEndian ); + TQDataStream s( io->ioDevice() ); + s.setByteOrder( TQDataStream::LittleEndian ); // Read image header. @@ -343,7 +343,7 @@ KDE_EXPORT void kimgio_tga_read( QImageIO *io ) } - QImage img; + TQImage img; bool result = LoadTGA(s, tga, img); if( result == false ) { @@ -359,12 +359,12 @@ KDE_EXPORT void kimgio_tga_read( QImageIO *io ) } -KDE_EXPORT void kimgio_tga_write( QImageIO *io ) +KDE_EXPORT void kimgio_tga_write( TQImageIO *io ) { - QDataStream s( io->ioDevice() ); - s.setByteOrder( QDataStream::LittleEndian ); + TQDataStream s( io->ioDevice() ); + s.setByteOrder( TQDataStream::LittleEndian ); - const QImage img = io->image(); + const TQImage img = io->image(); const bool hasAlpha = img.hasAlphaBuffer(); for( int i = 0; i < 12; i++ ) s << targaMagic[i]; |