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