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/gui/painting/qpainterpath.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)
     
    11971197    d->elements += other.d_func()->elements;
    11981198
    1199     d->elements[first].type = LineToElement;
     1199    if (first != 0)
     1200        d->elements[first].type = LineToElement;
    12001201
    12011202    // avoid duplicate points
     
    12581259{
    12591260    ensureData();
     1261    if (d_func()->fillRule == fillRule)
     1262        return;
    12601263    detach();
    12611264
     
    19131916        case QPainterPath::MoveToElement:
    19141917            if (i > 0
    1915                 && qFuzzyCompare(last_pt.x(), last_start.y())
     1918                && qFuzzyCompare(last_pt.x(), last_start.x())
    19161919                && qFuzzyCompare(last_pt.y(), last_start.y())
    19171920                && qt_painterpath_isect_line_rect(last_pt.x(), last_pt.y(),
     
    23062309    returns a reference to the \a stream.
    23072310
    2308     \sa {Format of the QDataStream Operators}
     2311    \sa {Serializing Qt Data Types}
    23092312*/
    23102313QDataStream &operator<<(QDataStream &s, const QPainterPath &p)
     
    23332336    and returns a reference to the \a stream.
    23342337
    2335     \sa {Format of the QDataStream Operators}
     2338    \sa {Serializing Qt Data Types}
    23362339*/
    23372340QDataStream &operator>>(QDataStream &s, QPainterPath &p)
     
    31663169    Set operations on paths will treat the paths as areas. Non-closed
    31673170    paths will be treated as implicitly closed.
     3171    Bezier curves may be flattened to line segments due to numerical instability of
     3172    doing bezier curve intersections.
    31683173
    31693174    \sa intersected(), subtracted()
     
    31813186
    31823187    Returns a path which is the intersection of this path's fill area and \a p's fill area.
     3188    Bezier curves may be flattened to line segments due to numerical instability of
     3189    doing bezier curve intersections.
    31833190*/
    31843191QPainterPath QPainterPath::intersected(const QPainterPath &p) const
     
    31973204    Set operations on paths will treat the paths as areas. Non-closed
    31983205    paths will be treated as implicitly closed.
    3199 
     3206    Bezier curves may be flattened to line segments due to numerical instability of
     3207    doing bezier curve intersections.
    32003208*/
    32013209QPainterPath QPainterPath::subtracted(const QPainterPath &p) const
     
    32263234    and returning a path containing no intersecting edges. Consecutive parallel lines will also
    32273235    be merged. The simplified path will always use the default fill rule, Qt::OddEvenFill.
     3236    Bezier curves may be flattened to line segments due to numerical instability of
     3237    doing bezier curve intersections.
    32283238*/
    32293239QPainterPath QPainterPath::simplified() const
Note: See TracChangeset for help on using the changeset viewer.