Changeset 846 for trunk/src/gui/painting/qpainterpath.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/gui/painting/qpainterpath.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) … … 1197 1197 d->elements += other.d_func()->elements; 1198 1198 1199 d->elements[first].type = LineToElement; 1199 if (first != 0) 1200 d->elements[first].type = LineToElement; 1200 1201 1201 1202 // avoid duplicate points … … 1258 1259 { 1259 1260 ensureData(); 1261 if (d_func()->fillRule == fillRule) 1262 return; 1260 1263 detach(); 1261 1264 … … 1913 1916 case QPainterPath::MoveToElement: 1914 1917 if (i > 0 1915 && qFuzzyCompare(last_pt.x(), last_start. y())1918 && qFuzzyCompare(last_pt.x(), last_start.x()) 1916 1919 && qFuzzyCompare(last_pt.y(), last_start.y()) 1917 1920 && qt_painterpath_isect_line_rect(last_pt.x(), last_pt.y(), … … 2306 2309 returns a reference to the \a stream. 2307 2310 2308 \sa { Format of the QDataStream Operators}2311 \sa {Serializing Qt Data Types} 2309 2312 */ 2310 2313 QDataStream &operator<<(QDataStream &s, const QPainterPath &p) … … 2333 2336 and returns a reference to the \a stream. 2334 2337 2335 \sa { Format of the QDataStream Operators}2338 \sa {Serializing Qt Data Types} 2336 2339 */ 2337 2340 QDataStream &operator>>(QDataStream &s, QPainterPath &p) … … 3166 3169 Set operations on paths will treat the paths as areas. Non-closed 3167 3170 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. 3168 3173 3169 3174 \sa intersected(), subtracted() … … 3181 3186 3182 3187 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. 3183 3190 */ 3184 3191 QPainterPath QPainterPath::intersected(const QPainterPath &p) const … … 3197 3204 Set operations on paths will treat the paths as areas. Non-closed 3198 3205 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. 3200 3208 */ 3201 3209 QPainterPath QPainterPath::subtracted(const QPainterPath &p) const … … 3226 3234 and returning a path containing no intersecting edges. Consecutive parallel lines will also 3227 3235 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. 3228 3238 */ 3229 3239 QPainterPath QPainterPath::simplified() const
Note:
See TracChangeset
for help on using the changeset viewer.