From 4c0dae60b2fbc60996fc8f4bd29ee6219b869527 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 25 Sep 2023 12:03:00 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- kimgio/ico.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kimgio/ico.cpp') diff --git a/kimgio/ico.cpp b/kimgio/ico.cpp index e14f09fb5..35cef0282 100644 --- a/kimgio/ico.cpp +++ b/kimgio/ico.cpp @@ -169,9 +169,9 @@ namespace if ( icon.isNull() ) return false; icon.setAlphaBuffer( true ); - TQMemArray< QRgb > colorTable( paletteSize ); + TQMemArray< TQRgb > colorTable( paletteSize ); - colorTable.fill( QRgb( 0 ) ); + colorTable.fill( TQRgb( 0 ) ); for ( unsigned i = 0; i < paletteEntries; ++i ) { unsigned char rgb[ 4 ]; @@ -188,7 +188,7 @@ namespace { stream.readRawBytes( reinterpret_cast< char* >( buf ), bpl ); unsigned char* pixel = buf; - QRgb* p = reinterpret_cast< QRgb* >( lines[ y ] ); + TQRgb* p = reinterpret_cast< TQRgb* >( lines[ y ] ); switch ( header.biBitCount ) { case 1: @@ -230,7 +230,7 @@ namespace for ( unsigned y = rec.height; y--; ) { stream.readRawBytes( reinterpret_cast< char* >( buf ), bpl ); - QRgb* p = reinterpret_cast< QRgb* >( lines[ y ] ); + TQRgb* p = reinterpret_cast< TQRgb* >( lines[ y ] ); for ( unsigned x = 0; x < rec.width; ++x, ++p ) if ( ( ( buf[ x / 8 ] >> ( 7 - ( x & 0x07 ) ) ) & 1 ) ) *p &= TQRGB_MASK; -- cgit v1.2.1