diff options
Diffstat (limited to 'src/kernel/qpicture.cpp')
-rw-r--r-- | src/kernel/qpicture.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/kernel/qpicture.cpp b/src/kernel/qpicture.cpp index f7c60ad3b..64245179a 100644 --- a/src/kernel/qpicture.cpp +++ b/src/kernel/qpicture.cpp @@ -138,7 +138,7 @@ TQPicture::TQPicture( int formatVersion ) #if defined(QT_CHECK_RANGE) if ( formatVersion == 0 ) - qWarning( "TQPicture: invalid format version 0" ); + tqWarning( "TQPicture: invalid format version 0" ); #endif // still accept the 0 default from before TQt 3.0. @@ -260,7 +260,7 @@ bool TQPicture::load( TQIODevice *dev, const char *format ) } #endif if ( format ) { - qWarning( "TQPicture::load: No such picture format: %s", format ); + tqWarning( "TQPicture::load: No such picture format: %s", format ); return FALSE; } @@ -291,7 +291,7 @@ bool TQPicture::save( const TQString &fileName, const char *format ) { if ( paintingActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPicture::save: still being painted on. " + tqWarning( "TQPicture::save: still being painted on. " "Call TQPainter::end() first" ); #endif return FALSE; @@ -300,7 +300,7 @@ bool TQPicture::save( const TQString &fileName, const char *format ) #ifndef QT_NO_SVG // identical to TQIODevice* code below but the file name // makes a difference when it comes to saving pixmaps - if ( qstricmp( format, "svg" ) == 0 ) { + if ( tqstricmp( format, "svg" ) == 0 ) { TQSvgDevice svg; TQPainter p( &svg ); if ( !play( &p ) ) @@ -326,14 +326,14 @@ bool TQPicture::save( TQIODevice *dev, const char *format ) { if ( paintingActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPicture::save: still being painted on. " + tqWarning( "TQPicture::save: still being painted on. " "Call TQPainter::end() first" ); #endif return FALSE; } #ifndef QT_NO_SVG - if ( qstricmp( format, "svg" ) == 0 ) { + if ( tqstricmp( format, "svg" ) == 0 ) { TQSvgDevice svg; TQPainter p( &svg ); if ( !play( &p ) ) @@ -343,7 +343,7 @@ bool TQPicture::save( TQIODevice *dev, const char *format ) } #endif if ( format ) { - qWarning( "TQPicture::save: No such picture format: %s", format ); + tqWarning( "TQPicture::save: No such picture format: %s", format ); return FALSE; } @@ -409,7 +409,7 @@ bool TQPicture::play( TQPainter *painter ) s >> nrecords; if ( !exec( painter, s, nrecords ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::play: Format error" ); + tqWarning( "TQPicture::play: Format error" ); #endif d->pictb.close(); return FALSE; @@ -669,13 +669,13 @@ bool TQPicture::exec( TQPainter *painter, TQDataStream &s, int nrecords ) break; default: #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::play: Invalid command %d", c ); + tqWarning( "TQPicture::play: Invalid command %d", c ); #endif if ( len ) // skip unknown command s.device()->at( s.device()->at()+len ); } #if defined(QT_DEBUG) - //qDebug( "device->at(): %i, strm_pos: %i len: %i", s.device()->at(), strm_pos, len ); + //tqDebug( "device->at(): %i, strm_pos: %i len: %i", s.device()->at(), strm_pos, len ); Q_ASSERT( Q_INT32(s.device()->at() - strm_pos) == len ); #endif } @@ -736,7 +736,7 @@ bool TQPicture::TQPicturePrivate::cmd( int c, TQPainter *pt, TQPDevCmdParam *p ) } s << (Q_UINT32)trecs; // write number of records pictb.at( cs_start ); - Q_UINT16 cs = (Q_UINT16)qChecksum( buf.data()+data_start, pos-data_start ); + Q_UINT16 cs = (Q_UINT16)tqChecksum( buf.data()+data_start, pos-data_start ); s << cs; // write checksum pictb.close(); return TRUE; @@ -899,7 +899,7 @@ bool TQPicture::TQPicturePrivate::cmd( int c, TQPainter *pt, TQPDevCmdParam *p ) break; #if defined(QT_CHECK_RANGE) default: - qWarning( "TQPicture::cmd: Command %d not recognized", c ); + tqWarning( "TQPicture::cmd: Command %d not recognized", c ); #endif } int newpos = (int)pictb.at(); // new position @@ -985,7 +985,7 @@ int TQPicture::metric( int m ) const default: val = 0; #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::metric: Invalid metric command" ); + tqWarning( "TQPicture::metric: Invalid metric command" ); #endif } return val; @@ -1120,7 +1120,7 @@ bool TQPicture::TQPicturePrivate::checkFormat() s.readRawBytes( mf_id, 4 ); // read actual tag if ( memcmp(mf_id, mfhdr_tag, 4) != 0 ) { // wrong header id #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::checkFormat: Incorrect header" ); + tqWarning( "TQPicture::checkFormat: Incorrect header" ); #endif pictb.close(); return FALSE; @@ -1131,10 +1131,10 @@ bool TQPicture::TQPicturePrivate::checkFormat() Q_UINT16 cs,ccs; TQByteArray buf = pictb.buffer(); // pointer to data s >> cs; // read checksum - ccs = qChecksum( buf.data() + data_start, buf.size() - data_start ); + ccs = tqChecksum( buf.data() + data_start, buf.size() - data_start ); if ( ccs != cs ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPicture::checkFormat: Invalid checksum %x, %x expected", + tqWarning( "TQPicture::checkFormat: Invalid checksum %x, %x expected", ccs, cs ); #endif pictb.close(); @@ -1145,7 +1145,7 @@ bool TQPicture::TQPicturePrivate::checkFormat() s >> major >> minor; // read version number if ( major > mfhdr_maj ) { // new, incompatible version #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::checkFormat: Incompatible version %d.%d", + tqWarning( "TQPicture::checkFormat: Incompatible version %d.%d", major, minor); #endif pictb.close(); @@ -1163,7 +1163,7 @@ bool TQPicture::TQPicturePrivate::checkFormat() } } else { #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::checkFormat: Format error" ); + tqWarning( "TQPicture::checkFormat: Format error" ); #endif pictb.close(); return FALSE; |