Lines 1-3
Link Here
|
|
|
1 |
#ifndef XML_QSVGDEVICE.CPP |
2 |
#define XML_QSVGDEVICE.CPP |
1 |
/**************************************************************************** |
3 |
/**************************************************************************** |
2 |
** $Id: qt/qsvgdevice.cpp 3.3.8 edited Jan 11 14:46 $ |
4 |
** $Id: qt/qsvgdevice.cpp 3.3.8 edited Jan 11 14:46 $ |
3 |
** |
5 |
** |
Lines 978-984
bool QSvgDevice::play( const QDomNode &n
Link Here
|
978 |
// ### catch references to embedded .svg files |
980 |
// ### catch references to embedded .svg files |
979 |
QPixmap pix; |
981 |
QPixmap pix; |
980 |
if ( !pix.load( href ) ) { |
982 |
if ( !pix.load( href ) ) { |
981 |
qWarning( "QSvgDevice::play: Couldn't load image "+href ); |
983 |
qWarning( "QSvgDevice::play: Couldn't load image %s", href.latin1() ); |
982 |
break; |
984 |
break; |
983 |
} |
985 |
} |
984 |
pt->drawPixmap( QRect( x1, y1, w, h ), pix ); |
986 |
pt->drawPixmap( QRect( x1, y1, w, h ), pix ); |
Lines 1024-1031
bool QSvgDevice::play( const QDomNode &n
Link Here
|
1024 |
break; |
1026 |
break; |
1025 |
} |
1027 |
} |
1026 |
case InvalidElement: |
1028 |
case InvalidElement: |
1027 |
qWarning( "QSvgDevice::play: unknown element type " + |
1029 |
qWarning( "QSvgDevice::play: unknown element type %s", |
1028 |
node.nodeName() ); |
1030 |
node.nodeName().latin1() ); |
1029 |
break; |
1031 |
break; |
1030 |
}; |
1032 |
}; |
1031 |
|
1033 |
|
Lines 1111-1117
double QSvgDevice::parseLen( const QStri
Link Here
|
1111 |
{ |
1113 |
{ |
1112 |
QRegExp reg( QString::fromLatin1("([+-]?\\d*\\.*\\d*[Ee]?[+-]?\\d*)(em|ex|px|%|pt|pc|cm|mm|in|)$") ); |
1114 |
QRegExp reg( QString::fromLatin1("([+-]?\\d*\\.*\\d*[Ee]?[+-]?\\d*)(em|ex|px|%|pt|pc|cm|mm|in|)$") ); |
1113 |
if ( reg.search( str ) == -1 ) { |
1115 |
if ( reg.search( str ) == -1 ) { |
1114 |
qWarning( "QSvgDevice::parseLen: couldn't parse " + str ); |
1116 |
qWarning( "QSvgDevice::parseLen: couldn't parse %s ", str.latin1() ); |
1115 |
if ( ok ) |
1117 |
if ( ok ) |
1116 |
*ok = FALSE; |
1118 |
*ok = FALSE; |
1117 |
return 0.0; |
1119 |
return 0.0; |
Lines 1140-1146
double QSvgDevice::parseLen( const QStri
Link Here
|
1140 |
else if ( u == "pc" ) |
1142 |
else if ( u == "pc" ) |
1141 |
dbl *= m.logicalDpiX() / 6.0; |
1143 |
dbl *= m.logicalDpiX() / 6.0; |
1142 |
else |
1144 |
else |
1143 |
qWarning( "QSvgDevice::parseLen: Unknown unit " + u ); |
1145 |
qWarning( "QSvgDevice::parseLen: Unknown unit %s", u.latin1() ); |
1144 |
} |
1146 |
} |
1145 |
if ( ok ) |
1147 |
if ( ok ) |
1146 |
*ok = TRUE; |
1148 |
*ok = TRUE; |
Lines 1586-1588
void QSvgDevice::applyTransform( QDomEle
Link Here
|
1586 |
} |
1588 |
} |
1587 |
|
1589 |
|
1588 |
#endif // QT_NO_SVG |
1590 |
#endif // QT_NO_SVG |
|
|
1591 |
#endif // XML_QSVGDEVICE.CPP |