summaryrefslogtreecommitdiffstats
path: root/kimgio/psd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kimgio/psd.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-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.cpp20
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!
}