summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpicture.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
commita830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (patch)
tree3910055c634e2ca44eacd2c892118634df9b3597 /src/kernel/qpicture.cpp
parentb0b53cc84f215df9b9bcce77253a6b7a9d300986 (diff)
downloadqt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.tar.gz
qt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.zip
Rename additional global TQt functions
Diffstat (limited to 'src/kernel/qpicture.cpp')
-rw-r--r--src/kernel/qpicture.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/kernel/qpicture.cpp b/src/kernel/qpicture.cpp
index d434516..c6364e0 100644
--- a/src/kernel/qpicture.cpp
+++ b/src/kernel/qpicture.cpp
@@ -138,7 +138,7 @@ QPicture::QPicture( int formatVersion )
#if defined(QT_CHECK_RANGE)
if ( formatVersion == 0 )
- qWarning( "QPicture: invalid format version 0" );
+ tqWarning( "QPicture: invalid format version 0" );
#endif
// still accept the 0 default from before Qt 3.0.
@@ -260,7 +260,7 @@ bool QPicture::load( QIODevice *dev, const char *format )
}
#endif
if ( format ) {
- qWarning( "QPicture::load: No such picture format: %s", format );
+ tqWarning( "QPicture::load: No such picture format: %s", format );
return FALSE;
}
@@ -291,7 +291,7 @@ bool QPicture::save( const QString &fileName, const char *format )
{
if ( paintingActive() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QPicture::save: still being painted on. "
+ tqWarning( "QPicture::save: still being painted on. "
"Call QPainter::end() first" );
#endif
return FALSE;
@@ -300,7 +300,7 @@ bool QPicture::save( const QString &fileName, const char *format )
#ifndef QT_NO_SVG
// identical to QIODevice* 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 ) {
QSvgDevice svg;
QPainter p( &svg );
if ( !play( &p ) )
@@ -326,14 +326,14 @@ bool QPicture::save( QIODevice *dev, const char *format )
{
if ( paintingActive() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QPicture::save: still being painted on. "
+ tqWarning( "QPicture::save: still being painted on. "
"Call QPainter::end() first" );
#endif
return FALSE;
}
#ifndef QT_NO_SVG
- if ( qstricmp( format, "svg" ) == 0 ) {
+ if ( tqstricmp( format, "svg" ) == 0 ) {
QSvgDevice svg;
QPainter p( &svg );
if ( !play( &p ) )
@@ -343,7 +343,7 @@ bool QPicture::save( QIODevice *dev, const char *format )
}
#endif
if ( format ) {
- qWarning( "QPicture::save: No such picture format: %s", format );
+ tqWarning( "QPicture::save: No such picture format: %s", format );
return FALSE;
}
@@ -409,7 +409,7 @@ bool QPicture::play( QPainter *painter )
s >> nrecords;
if ( !exec( painter, s, nrecords ) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "QPicture::play: Format error" );
+ tqWarning( "QPicture::play: Format error" );
#endif
d->pictb.close();
return FALSE;
@@ -669,13 +669,13 @@ bool QPicture::exec( QPainter *painter, QDataStream &s, int nrecords )
break;
default:
#if defined(QT_CHECK_RANGE)
- qWarning( "QPicture::play: Invalid command %d", c );
+ tqWarning( "QPicture::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 QPicture::QPicturePrivate::cmd( int c, QPainter *pt, QPDevCmdParam *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 QPicture::QPicturePrivate::cmd( int c, QPainter *pt, QPDevCmdParam *p )
break;
#if defined(QT_CHECK_RANGE)
default:
- qWarning( "QPicture::cmd: Command %d not recognized", c );
+ tqWarning( "QPicture::cmd: Command %d not recognized", c );
#endif
}
int newpos = (int)pictb.at(); // new position
@@ -985,7 +985,7 @@ int QPicture::metric( int m ) const
default:
val = 0;
#if defined(QT_CHECK_RANGE)
- qWarning( "QPicture::metric: Invalid metric command" );
+ tqWarning( "QPicture::metric: Invalid metric command" );
#endif
}
return val;
@@ -1120,7 +1120,7 @@ bool QPicture::QPicturePrivate::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( "QPicture::checkFormat: Incorrect header" );
+ tqWarning( "QPicture::checkFormat: Incorrect header" );
#endif
pictb.close();
return FALSE;
@@ -1131,10 +1131,10 @@ bool QPicture::QPicturePrivate::checkFormat()
Q_UINT16 cs,ccs;
QByteArray 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( "QPicture::checkFormat: Invalid checksum %x, %x expected",
+ tqWarning( "QPicture::checkFormat: Invalid checksum %x, %x expected",
ccs, cs );
#endif
pictb.close();
@@ -1145,7 +1145,7 @@ bool QPicture::QPicturePrivate::checkFormat()
s >> major >> minor; // read version number
if ( major > mfhdr_maj ) { // new, incompatible version
#if defined(QT_CHECK_RANGE)
- qWarning( "QPicture::checkFormat: Incompatible version %d.%d",
+ tqWarning( "QPicture::checkFormat: Incompatible version %d.%d",
major, minor);
#endif
pictb.close();
@@ -1163,7 +1163,7 @@ bool QPicture::QPicturePrivate::checkFormat()
}
} else {
#if defined(QT_CHECK_RANGE)
- qWarning( "QPicture::checkFormat: Format error" );
+ tqWarning( "QPicture::checkFormat: Format error" );
#endif
pictb.close();
return FALSE;