summaryrefslogtreecommitdiffstats
path: root/kimgio/xview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kimgio/xview.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio/xview.cpp')
-rw-r--r--kimgio/xview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kimgio/xview.cpp b/kimgio/xview.cpp
index 746ddc6bc..f6391eb85 100644
--- a/kimgio/xview.cpp
+++ b/kimgio/xview.cpp
@@ -84,7 +84,7 @@ KDE_EXPORT void kimgio_xv_read( TQImageIO *_imageio )
r = rg_255_7[((j >> 5) & 0x07)];
g = rg_255_7[((j >> 2) & 0x07)];
b = b_255_3[((j >> 0) & 0x03)];
- image.setColor( j, qRgb( r, g, b ) );
+ image.setColor( j, tqRgb( r, g, b ) );
}
for ( int py = 0; py < y; py++ )
@@ -145,17 +145,17 @@ KDE_EXPORT void kimgio_xv_write( TQImageIO *imageio )
if ( image.depth() == 32 )
{
QRgb *data32 = (QRgb*) data;
- r = qRed( *data32 ) >> 5;
- g = qGreen( *data32 ) >> 5;
- b = qBlue( *data32 ) >> 6;
+ r = tqRed( *data32 ) >> 5;
+ g = tqGreen( *data32 ) >> 5;
+ b = tqBlue( *data32 ) >> 6;
data += sizeof( QRgb );
}
else
{
QRgb color = image.color( *data );
- r = qRed( color ) >> 5;
- g = qGreen( color ) >> 5;
- b = qBlue( color ) >> 6;
+ r = tqRed( color ) >> 5;
+ g = tqGreen( color ) >> 5;
+ b = tqBlue( color ) >> 6;
data++;
}
buffer[ px ] = ( r << 5 ) | ( g << 2 ) | b;