summaryrefslogtreecommitdiffstats
path: root/kimgio/psd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
commitf7e71d47719ab6094cf4a9fafffa5ea351973522 (patch)
tree30834aa632d442019e14f88685001d94657d060b /kimgio/psd.cpp
parentb31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff)
downloadtdelibs-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/psd.cpp')
-rw-r--r--kimgio/psd.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kimgio/psd.cpp b/kimgio/psd.cpp
index 13070a0c2..2374b6a97 100644
--- a/kimgio/psd.cpp
+++ b/kimgio/psd.cpp
@@ -24,9 +24,9 @@
#include <kdebug.h>
-typedef Q_UINT32 uint;
-typedef Q_UINT16 ushort;
-typedef Q_UINT8 uchar;
+typedef TQ_UINT32 uint;
+typedef TQ_UINT16 ushort;
+typedef TQ_UINT8 uchar;
namespace { // Private.
@@ -119,15 +119,15 @@ namespace { // Private.
// Skip mode data.
s >> tmp;
- s.device()->at( s.device()->at() + tmp );
+ s.tqdevice()->at( s.tqdevice()->at() + tmp );
// Skip image resources.
s >> tmp;
- s.device()->at( s.device()->at() + tmp );
+ s.tqdevice()->at( s.tqdevice()->at() + tmp );
// Skip the reserved data.
s >> tmp;
- s.device()->at( s.device()->at() + tmp );
+ s.tqdevice()->at( s.tqdevice()->at() + tmp );
// Find out if the data is compressed.
// Known values:
@@ -145,7 +145,7 @@ namespace { // Private.
// Clear the image.
if( channel_num < 4 ) {
- img.fill(qRgba(0, 0, 0, 0xFF));
+ img.fill(tqRgba(0, 0, 0, 0xFF));
}
else {
// Enable alpha.
@@ -249,29 +249,29 @@ void kimgio_psd_read( TQImageIO *io )
// Check image file format.
if( s.atEnd() || !IsValid( header ) ) {
kdDebug(399) << "This PSD file is not valid." << endl;
- io->setImage( 0 );
- io->setStatus( -1 );
+ io->setImage( TQImage() );
+ io->setqStatus( -1 );
return;
}
// Check if it's a supported format.
if( !IsSupported( header ) ) {
kdDebug(399) << "This PSD file is not supported." << endl;
- io->setImage( 0 );
- io->setStatus( -1 );
+ io->setImage( TQImage() );
+ io->setqStatus( -1 );
return;
}
TQImage img;
if( !LoadPSD(s, header, img) ) {
kdDebug(399) << "Error loading PSD file." << endl;
- io->setImage( 0 );
- io->setStatus( -1 );
+ io->setImage( TQImage() );
+ io->setqStatus( -1 );
return;
}
io->setImage( img );
- io->setStatus( 0 );
+ io->setqStatus( 0 );
}