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/psd.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/psd.cpp')
-rw-r--r-- | kimgio/psd.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kimgio/psd.cpp b/kimgio/psd.cpp index 202fbacb4..13070a0c2 100644 --- a/kimgio/psd.cpp +++ b/kimgio/psd.cpp @@ -19,8 +19,8 @@ #include "psd.h" -#include <qimage.h> -#include <qdatastream.h> +#include <tqimage.h> +#include <tqdatastream.h> #include <kdebug.h> @@ -52,7 +52,7 @@ namespace { // Private. ushort color_mode; }; - static QDataStream & operator>> ( QDataStream & s, PSDHeader & header ) + static TQDataStream & operator>> ( TQDataStream & s, PSDHeader & header ) { s >> header.signature; s >> header.version; @@ -66,7 +66,7 @@ namespace { // Private. s >> header.color_mode; return s; } - static bool seekBy(QDataStream& s, unsigned int bytes) + static bool seekBy(TQDataStream& s, unsigned int bytes) { char buf[4096]; while (bytes) { @@ -108,7 +108,7 @@ namespace { // Private. } // Load the PSD image. - static bool LoadPSD( QDataStream & s, const PSDHeader & header, QImage & img ) + static bool LoadPSD( TQDataStream & s, const PSDHeader & header, TQImage & img ) { // Create dst image. if( !img.create( header.width, header.height, 32 )) { @@ -238,10 +238,10 @@ namespace { // Private. } // Private -void kimgio_psd_read( QImageIO *io ) +void kimgio_psd_read( TQImageIO *io ) { - QDataStream s( io->ioDevice() ); - s.setByteOrder( QDataStream::BigEndian ); + TQDataStream s( io->ioDevice() ); + s.setByteOrder( TQDataStream::BigEndian ); PSDHeader header; s >> header; @@ -262,7 +262,7 @@ void kimgio_psd_read( QImageIO *io ) return; } - QImage img; + TQImage img; if( !LoadPSD(s, header, img) ) { kdDebug(399) << "Error loading PSD file." << endl; io->setImage( 0 ); @@ -275,7 +275,7 @@ void kimgio_psd_read( QImageIO *io ) } -void kimgio_psd_write( QImageIO * ) +void kimgio_psd_write( TQImageIO * ) { // TODO Stub! } |