diff options
author | Timothy Pearson <[email protected]> | 2012-03-02 02:11:59 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-03-02 02:11:59 -0600 |
commit | 9a75b154bf0732aa3a501b6e31e566e06c5f8a31 (patch) | |
tree | df1e10cc7504665622d096f9ba80dc9e56f3afb8 /src/kernel/qimage.cpp | |
parent | a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (diff) | |
download | qt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.tar.gz qt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.zip |
Undo prior accidental commit
Diffstat (limited to 'src/kernel/qimage.cpp')
-rw-r--r-- | src/kernel/qimage.cpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/src/kernel/qimage.cpp b/src/kernel/qimage.cpp index 3984e67..b55a0e7 100644 --- a/src/kernel/qimage.cpp +++ b/src/kernel/qimage.cpp @@ -427,9 +427,9 @@ QImage::QImage( const char * const xpm[] ) #ifndef QT_NO_IMAGEIO_XPM read_xpm_image_or_array( 0, xpm, *this ); #else - // We use a tqFatal rather than disabling the whole function, as this + // We use a qFatal rather than disabling the whole function, as this // constructor may be ambiguous. - tqFatal("XPM not supported"); + qFatal("XPM not supported"); #endif } @@ -588,7 +588,7 @@ QImage QImage::fromMimeSource( const QString &abs_name ) const QMimeSource *m = QMimeSourceFactory::defaultFactory()->data( abs_name ); if ( !m ) { #if defined(QT_CHECK_STATE) - tqWarning("QImage::fromMimeSource: Cannot find image \"%s\" in the mime source factory", abs_name.latin1() ); + qWarning("QImage::fromMimeSource: Cannot find image \"%s\" in the mime source factory", abs_name.latin1() ); #endif return QImage(); } @@ -944,7 +944,7 @@ QImage QImage::copy(int x, int y, int w, int h, int conversion_flags) const void QImage::warningIndexRange( const char *func, int i ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::%s: Index %d out of range", func, i ); + qWarning( "QImage::%s: Index %d out of range", func, i ); #else Q_UNUSED( func ) Q_UNUSED( i ) @@ -1091,7 +1091,7 @@ QImage::Endian QImage::systemByteOrder() if ( sbo == IgnoreEndian ) { // initialize int ws; bool be; - tqSysInfo( &ws, &be ); + qSysInfo( &ws, &be ); sbo = be ? BigEndian : LittleEndian; } return sbo; @@ -1242,7 +1242,7 @@ bool QImage::create( int width, int height, int depth, int numColors, return FALSE; // invalid parameter(s) if ( depth == 1 && bitOrder == IgnoreEndian ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::create: Bit order is required for 1 bpp images" ); + qWarning( "QImage::create: Bit order is required for 1 bpp images" ); #endif return FALSE; } @@ -1251,7 +1251,7 @@ bool QImage::create( int width, int height, int depth, int numColors, #if defined(QT_CHECK_RANGE) if ( depth == 24 ) - tqWarning( "QImage::create: 24-bpp images no longer supported, " + qWarning( "QImage::create: 24-bpp images no longer supported, " "use 32-bpp instead" ); #endif switch ( depth ) { @@ -2162,9 +2162,9 @@ QImage QImage::convertDepth( int depth, int conversion_flags ) const else { #if defined(QT_CHECK_RANGE) if ( isNull() ) - tqWarning( "QImage::convertDepth: Image is a null image" ); + qWarning( "QImage::convertDepth: Image is a null image" ); else - tqWarning( "QImage::convertDepth: Depth %d not supported", depth ); + qWarning( "QImage::convertDepth: Depth %d not supported", depth ); #endif } return image; @@ -2206,7 +2206,7 @@ int QImage::pixelIndex( int x, int y ) const { #if defined(QT_CHECK_RANGE) if ( x < 0 || x >= width() ) { - tqWarning( "QImage::pixel: x=%d out of range", x ); + qWarning( "QImage::pixel: x=%d out of range", x ); return -12345; } #endif @@ -2225,7 +2225,7 @@ int QImage::pixelIndex( int x, int y ) const #endif case 32: #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::pixelIndex: Not applicable for %d-bpp images " + qWarning( "QImage::pixelIndex: Not applicable for %d-bpp images " "(no palette)", depth() ); #endif return 0; @@ -2248,7 +2248,7 @@ QRgb QImage::pixel( int x, int y ) const { #if defined(QT_CHECK_RANGE) if ( x < 0 || x >= width() ) { - tqWarning( "QImage::pixel: x=%d out of range", x ); + qWarning( "QImage::pixel: x=%d out of range", x ); return 12345; } #endif @@ -2292,7 +2292,7 @@ void QImage::setPixel( int x, int y, uint index_or_rgb ) { if ( x < 0 || x >= width() ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::setPixel: x=%d out of range", x ); + qWarning( "QImage::setPixel: x=%d out of range", x ); #endif return; } @@ -2300,7 +2300,7 @@ void QImage::setPixel( int x, int y, uint index_or_rgb ) uchar * s = scanLine( y ); if ( index_or_rgb > 1) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::setPixel: index=%d out of range", + qWarning( "QImage::setPixel: index=%d out of range", index_or_rgb ); #endif } else if ( bitOrder() == QImage::LittleEndian ) { @@ -2317,7 +2317,7 @@ void QImage::setPixel( int x, int y, uint index_or_rgb ) } else if ( depth() == 8 ) { if (index_or_rgb > (uint)numColors()) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::setPixel: index=%d out of range", + qWarning( "QImage::setPixel: index=%d out of range", index_or_rgb ); #endif return; @@ -2789,7 +2789,7 @@ QImage QImage::smoothScale( const QSize& s, ScaleMode mode ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::smoothScale: Image is a null image" ); + qWarning( "QImage::smoothScale: Image is a null image" ); #endif return copy(); } @@ -2854,7 +2854,7 @@ QImage QImage::scale( const QSize& s, ScaleMode mode ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::scale: Image is a null image" ); + qWarning( "QImage::scale: Image is a null image" ); #endif return copy(); } @@ -2892,7 +2892,7 @@ QImage QImage::scaleWidth( int w ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::scaleWidth: Image is a null image" ); + qWarning( "QImage::scaleWidth: Image is a null image" ); #endif return copy(); } @@ -2921,7 +2921,7 @@ QImage QImage::scaleHeight( int h ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage::scaleHeight: Image is a null image" ); + qWarning( "QImage::scaleHeight: Image is a null image" ); #endif return copy(); } @@ -3336,7 +3336,7 @@ QImage QImage::swapRGB() const } #ifndef QT_NO_IMAGE_16_BIT } else if ( depth() == 16 ) { - tqWarning( "QImage::swapRGB not implemented for 16bpp" ); + qWarning( "QImage::swapRGB not implemented for 16bpp" ); #endif } else #endif //QT_NO_IMAGE_TRUECOLOR @@ -3562,7 +3562,7 @@ bool QImage::doImageIO( QImageIO* io, int quality ) const io->setImage( *this ); #if defined(QT_CHECK_RANGE) if ( quality > 100 || quality < -1 ) - tqWarning( "QPixmap::save: quality out of range [-1,100]" ); + qWarning( "QPixmap::save: quality out of range [-1,100]" ); #endif if ( quality >= 0 ) io->setQuality( QMIN(quality,100) ); @@ -3899,7 +3899,7 @@ void qt_init_image_handlers() // initialize image handlers imageHandlers = new QIHList; Q_CHECK_PTR( imageHandlers ); imageHandlers->setAutoDelete( TRUE ); - tqAddPostRoutine( cleanup ); + qAddPostRoutine( cleanup ); #ifndef QT_NO_IMAGEIO_BMP QImageIO::defineIOHandler( "BMP", "^BM", 0, read_bmp_image, write_bmp_image ); @@ -4199,7 +4199,7 @@ void QImageIO::setParameters( const char *parameters ) { if ( d && d->parameters ) delete [] (char*)d->parameters; - d->parameters = tqstrdup( parameters ); + d->parameters = qstrdup( parameters ); } /*! @@ -4502,7 +4502,7 @@ bool QImageIO::write() } if ( !h || !h->write_image ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImageIO::write: No such image format handler: %s", + qWarning( "QImageIO::write: No such image format handler: %s", format() ); #endif return FALSE; @@ -4637,19 +4637,19 @@ bool read_dib( QDataStream& s, int offset, int startpos, QImage& image ) if ( d->atEnd() ) // end of stream/file return FALSE; #if 0 - tqDebug( "offset...........%d", offset ); - tqDebug( "startpos.........%d", startpos ); - tqDebug( "biSize...........%d", bi.biSize ); - tqDebug( "biWidth..........%d", bi.biWidth ); - tqDebug( "biHeight.........%d", bi.biHeight ); - tqDebug( "biPlanes.........%d", bi.biPlanes ); - tqDebug( "biBitCount.......%d", bi.biBitCount ); - tqDebug( "biCompression....%d", bi.biCompression ); - tqDebug( "biSizeImage......%d", bi.biSizeImage ); - tqDebug( "biXPelsPerMeter..%d", bi.biXPelsPerMeter ); - tqDebug( "biYPelsPerMeter..%d", bi.biYPelsPerMeter ); - tqDebug( "biClrUsed........%d", bi.biClrUsed ); - tqDebug( "biClrImportant...%d", bi.biClrImportant ); + qDebug( "offset...........%d", offset ); + qDebug( "startpos.........%d", startpos ); + qDebug( "biSize...........%d", bi.biSize ); + qDebug( "biWidth..........%d", bi.biWidth ); + qDebug( "biHeight.........%d", bi.biHeight ); + qDebug( "biPlanes.........%d", bi.biPlanes ); + qDebug( "biBitCount.......%d", bi.biBitCount ); + qDebug( "biCompression....%d", bi.biCompression ); + qDebug( "biSizeImage......%d", bi.biSizeImage ); + qDebug( "biXPelsPerMeter..%d", bi.biXPelsPerMeter ); + qDebug( "biYPelsPerMeter..%d", bi.biYPelsPerMeter ); + qDebug( "biClrUsed........%d", bi.biClrUsed ); + qDebug( "biClrImportant...%d", bi.biClrImportant ); #endif int w = bi.biWidth, h = bi.biHeight, nbits = bi.biBitCount; int t = bi.biSize, comp = bi.biCompression; @@ -5758,7 +5758,7 @@ static void read_xpm_image_or_array( QImageIO * iio, const char * const * source for( currentColor=0; currentColor < ncols; ++currentColor ) { if ( !read_xpm_string( buf, d, source, index ) ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage: XPM color specification missing"); + qWarning( "QImage: XPM color specification missing"); #endif return; } @@ -5769,7 +5769,7 @@ static void read_xpm_image_or_array( QImageIO * iio, const char * const * source i = nextColorSpec(buf); if ( i < 0 ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage: XPM color specification is missing: %s", buf.data()); + qWarning( "QImage: XPM color specification is missing: %s", buf.data()); #endif return; // no c/g/g4/m/s specification at all } @@ -5809,7 +5809,7 @@ static void read_xpm_image_or_array( QImageIO * iio, const char * const * source for( int y=0; y<h; y++ ) { if ( !read_xpm_string( buf, d, source, index ) ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QImage: XPM pixels missing on image line %d", y); + qWarning( "QImage: XPM pixels missing on image line %d", y); #endif return; } @@ -6478,7 +6478,7 @@ QGfx * QImage::graphicsContext() int h = qt_screen->mapToDevice( QSize(width(),height()) ).height(); ret=QGfx::createGfx(depth(),bits(),w,h,bytesPerLine()); } else { - tqDebug("Trying to create image for null depth"); + qDebug("Trying to create image for null depth"); return 0; } if(depth()<=8) { |