Changeset 846 for trunk/src/svg/qsvggenerator.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/svg/qsvggenerator.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 311 311 *d_func()->stream << QLatin1String("fill=\"none\" "); 312 312 *d_func()->stream << QLatin1String("stroke=\"black\" "); 313 *d_func()->stream << QLatin1String("vector-effect=\"non-scaling-stroke\" ");314 313 *d_func()->stream << QLatin1String("stroke-width=\"1\" "); 315 314 *d_func()->stream << QLatin1String("fill-rule=\"evenodd\" "); … … 381 380 } 382 381 383 if (spen.widthF() == 0) { 384 width = QLatin1String("1"); 385 stream() << "vector-effect=\"non-scaling-stroke\" "; 386 } 382 if (spen.widthF() == 0) 383 stream() <<"stroke-width=\"1\" "; 387 384 else 388 width = QString::number(spen.widthF()); 389 stream() <<"stroke-width=\""<<width<<"\" "; 385 stream() <<"stroke-width=\"" << spen.widthF() << "\" "; 390 386 391 387 switch (spen.capStyle()) { … … 984 980 Q_D(QSvgPaintEngine); 985 981 986 *d->stream << "<path " 987 "fill-rule="; 988 if (p.fillRule() == Qt::OddEvenFill) 989 *d->stream << "\"evenodd\" "; 990 else 991 *d->stream << "\"nonzero\" "; 992 993 *d->stream << "d=\""; 982 *d->stream << "<path vector-effect=\"" 983 << (state->pen().isCosmetic() ? "non-scaling-stroke" : "none") 984 << "\" fill-rule=\"" 985 << (p.fillRule() == Qt::OddEvenFill ? "evenodd" : "nonzero") 986 << "\" d=\""; 994 987 995 988 for (int i=0; i<p.elementCount(); ++i) { … … 1039 1032 1040 1033 if (mode == PolylineMode) { 1041 stream() << "<polyline fill=\"none\" points=\""; 1034 stream() << "<polyline fill=\"none\" vector-effect=\"" 1035 << (state->pen().isCosmetic() ? "non-scaling-stroke" : "none") 1036 << "\" points=\""; 1042 1037 for (int i = 0; i < pointCount; ++i) { 1043 1038 const QPointF &pt = points[i];
Note:
See TracChangeset
for help on using the changeset viewer.