Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/svg/qsvggenerator.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    311311        *d_func()->stream << QLatin1String("fill=\"none\" ");
    312312        *d_func()->stream << QLatin1String("stroke=\"black\" ");
    313         *d_func()->stream << QLatin1String("vector-effect=\"non-scaling-stroke\" ");
    314313        *d_func()->stream << QLatin1String("stroke-width=\"1\" ");
    315314        *d_func()->stream << QLatin1String("fill-rule=\"evenodd\" ");
     
    381380        }
    382381
    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\" ";
    387384        else
    388             width = QString::number(spen.widthF());
    389         stream() <<"stroke-width=\""<<width<<"\" ";
     385            stream() <<"stroke-width=\"" << spen.widthF() << "\" ";
    390386
    391387        switch (spen.capStyle()) {
     
    984980    Q_D(QSvgPaintEngine);
    985981
    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=\"";
    994987
    995988    for (int i=0; i<p.elementCount(); ++i) {
     
    10391032
    10401033    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=\"";
    10421037        for (int i = 0; i < pointCount; ++i) {
    10431038            const QPointF &pt = points[i];
Note: See TracChangeset for help on using the changeset viewer.