diff options
Diffstat (limited to 'src/xml/qsvgdevice.cpp')
-rw-r--r-- | src/xml/qsvgdevice.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/xml/qsvgdevice.cpp b/src/xml/qsvgdevice.cpp index da64aa911..106905594 100644 --- a/src/xml/qsvgdevice.cpp +++ b/src/xml/qsvgdevice.cpp @@ -187,13 +187,13 @@ bool TQSvgDevice::play( TQPainter *painter ) pt->setPen( TQt::NoPen ); // SVG default pen and brush pt->setBrush( TQt::black ); if ( doc.isNull() ) { - qWarning( "TQSvgDevice::play: No SVG data set." ); + tqWarning( "TQSvgDevice::play: No SVG data set." ); return FALSE; } TQDomNode svg = doc.namedItem( "svg" ); if ( svg.isNull() || !svg.isElement() ) { - qWarning( "TQSvgDevice::play: Couldn't find any svg element." ); + tqWarning( "TQSvgDevice::play: Couldn't find any svg element." ); return FALSE; } @@ -221,7 +221,7 @@ bool TQSvgDevice::play( TQPainter *painter ) TQRegExp re( TQString::fromLatin1("\\s*(\\S+)\\s*,?\\s*(\\S+)\\s*,?" "\\s*(\\S+)\\s*,?\\s*(\\S+)\\s*") ); if ( re.search( attr.namedItem( "viewBox" ).nodeValue() ) < 0 ) { - qWarning( "TQSvgDevice::play: Invalid viewBox attribute."); + tqWarning( "TQSvgDevice::play: Invalid viewBox attribute."); return FALSE; } else { double x = re.cap( 1 ).toDouble(); @@ -229,7 +229,7 @@ bool TQSvgDevice::play( TQPainter *painter ) double w = re.cap( 3 ).toDouble(); double h = re.cap( 4 ).toDouble(); if ( w < 0 || h < 0 ) { - qWarning( "TQSvgDevice::play: Invalid viewBox dimension."); + tqWarning( "TQSvgDevice::play: Invalid viewBox dimension."); return FALSE; } else if ( w == 0 || h == 0 ) { return TRUE; @@ -353,7 +353,7 @@ bool TQSvgDevice::save( TQIODevice *dev ) { #if defined(CHECK_RANGE) if ( !d->images.isEmpty() || !d->pixmaps.isEmpty() ) - qWarning( "TQSvgDevice::save: skipping external images" ); + tqWarning( "TQSvgDevice::save: skipping external images" ); #endif TQTextStream s( dev ); @@ -419,7 +419,7 @@ int TQSvgDevice::metric( int m ) const default: val = 0; #if defined(QT_CHECK_RANGE) - qWarning( "TQSvgDevice::metric: Invalid metric command" ); + tqWarning( "TQSvgDevice::metric: Invalid metric command" ); #endif } return val; @@ -714,7 +714,7 @@ bool TQSvgDevice::cmd ( int c, TQPainter *painter, TQPDevCmdParam *p ) } default: #if defined(CHECK_RANGE) - qWarning( "TQSVGDevice::cmd: Invalid command %d", c ); + tqWarning( "TQSVGDevice::cmd: Invalid command %d", c ); #endif break; } @@ -981,7 +981,7 @@ bool TQSvgDevice::play( const TQDomNode &node ) // ### catch references to embedded .svg files TQPixmap pix; if ( !pix.load( href ) ) { - qWarning( "TQSvgDevice::play: Couldn't load image %s", href.latin1() ); + tqWarning( "TQSvgDevice::play: Couldn't load image %s", href.latin1() ); break; } pt->drawPixmap( TQRect( x1, y1, w, h ), pix ); @@ -1027,7 +1027,7 @@ bool TQSvgDevice::play( const TQDomNode &node ) break; } case InvalidElement: - qWarning( "TQSvgDevice::play: unknown element type %s", + tqWarning( "TQSvgDevice::play: unknown element type %s", node.nodeName().latin1() ); break; }; @@ -1114,7 +1114,7 @@ double TQSvgDevice::parseLen( const TQString &str, bool *ok, bool horiz ) const { TQRegExp reg( TQString::fromLatin1("([+-]?\\d*\\.*\\d*[Ee]?[+-]?\\d*)(em|ex|px|%|pt|pc|cm|mm|in|)$") ); if ( reg.search( str ) == -1 ) { - qWarning( "TQSvgDevice::parseLen: couldn't parse %s ", str.latin1() ); + tqWarning( "TQSvgDevice::parseLen: couldn't parse %s ", str.latin1() ); if ( ok ) *ok = FALSE; return 0.0; @@ -1143,7 +1143,7 @@ double TQSvgDevice::parseLen( const TQString &str, bool *ok, bool horiz ) const else if ( u == "pc" ) dbl *= m.logicalDpiX() / 6.0; else - qWarning( "TQSvgDevice::parseLen: Unknown unit %s", u.latin1() ); + tqWarning( "TQSvgDevice::parseLen: Unknown unit %s", u.latin1() ); } if ( ok ) *ok = TRUE; @@ -1241,7 +1241,7 @@ void TQSvgDevice::setStyleProperty( const TQString &prop, const TQString &val, else if ( val == "italic" ) font->setItalic( TRUE ); else - qWarning( "TQSvgDevice::setStyleProperty: unhandled " + tqWarning( "TQSvgDevice::setStyleProperty: unhandled " "font-style: %s", val.latin1() ); } else if ( prop == "font-weight" ) { int w = font->weight(); @@ -1373,7 +1373,7 @@ void TQSvgDevice::drawPath( const TQString &data ) cmd = mode; // continue in previous mode idx--; } else { - qWarning( "TQSvgDevice::drawPath: Unknown command" ); + tqWarning( "TQSvgDevice::drawPath: Unknown command" ); return; } } @@ -1385,7 +1385,7 @@ void TQSvgDevice::drawPath( const TQString &data ) for ( int i = 0; i < numArgs; i++ ) { int pos = reg.search( data, idx ); if ( pos == -1 ) { - qWarning( "TQSvgDevice::drawPath: Error parsing arguments" ); + tqWarning( "TQSvgDevice::drawPath: Error parsing arguments" ); return; } arg[ i ] = reg.cap( 1 ).toDouble(); |