diff options
Diffstat (limited to 'src/arkollon/data.cpp')
-rw-r--r-- | src/arkollon/data.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/arkollon/data.cpp b/src/arkollon/data.cpp index 89b57d6..d99c295 100644 --- a/src/arkollon/data.cpp +++ b/src/arkollon/data.cpp @@ -4,7 +4,7 @@ static struct EmbedImage { int width, height, depth; const unsigned char *data; int numColors; - const QRgb *colorTable; + const TQRgb *colorTable; bool alpha; const char *name; } embed_image_vec[] = { @@ -14,20 +14,20 @@ static struct EmbedImage { { 0, 0, 0, 0, 0, 0, 0, 0 } }; -const QImage& qembed_findImage( const QString& name ) +const TQImage& qembed_findImage( const TQString& name ) { - static QDict<QImage> dict; - QImage* img = dict.find( name ); + static TQDict<TQImage> dict; + TQImage* img = dict.find( name ); if ( !img ) { for ( int i = 0; embed_image_vec[i].data; i++ ) { if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) { - img = new QImage((uchar*)embed_image_vec[i].data, + img = new TQImage((uchar*)embed_image_vec[i].data, embed_image_vec[i].width, embed_image_vec[i].height, embed_image_vec[i].depth, - (QRgb*)embed_image_vec[i].colorTable, + (TQRgb*)embed_image_vec[i].colorTable, embed_image_vec[i].numColors, - QImage::BigEndian ); + TQImage::BigEndian ); if ( embed_image_vec[i].alpha ) img->setAlphaBuffer( TRUE ); dict.insert( name, img ); @@ -35,7 +35,7 @@ const QImage& qembed_findImage( const QString& name ) } } if ( !img ) { - static QImage dummy; + static TQImage dummy; return dummy; } } |