qt5base-lts/tests/auto/gui/painting
Eirik Aavitsland b233ce66d3 QPainter cosmetic stroker: Fix painting error for FlatCap lines
Initialize the lastDir properly, to avoid the stroking algorithm doing
direction-change handling for a single line. That could cause a cap to
be painted for a single FlatCap line.

Also fixes a bug in tst_qpainter, revealed by the above fix. The
result drawPolyline was erroneously compared to the result of drawing
the lines individually, for a case where the former correctly paints
the pixel of the join point in the corner, while the latter by
coincidence used to paint the same pixel as a cap because of the bug
above.

Task-number: QTBUG-70101
Change-Id: Ie20eda33214cfe9e7627f17ef4c7a5b3835c9c24
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2018-09-25 12:32:24 +00:00
..
qbrush Give the QGradient presets ObjectMode coordinate mode by default 2018-07-24 16:45:53 +00:00
qcolor Optimize unpremultiply using SSE rcp 2018-05-23 08:31:07 +00:00
qpagelayout Updated license headers 2016-01-21 18:55:18 +00:00
qpagesize Updated license headers 2016-01-21 18:55:18 +00:00
qpaintengine Updated license headers 2016-01-21 18:55:18 +00:00
qpainter QPainter cosmetic stroker: Fix painting error for FlatCap lines 2018-09-25 12:32:24 +00:00
qpainterpath winrt: Fix tst_QPainterPath 2017-05-31 13:10:05 +00:00
qpainterpathstroker Updated license headers 2016-01-21 18:55:18 +00:00
qpathclipper Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qpdfwriter Copy stretch to multifont fontDef 2017-04-05 11:27:15 +00:00
qpen Updated license headers 2016-01-21 18:55:18 +00:00
qpolygon Add QPolygon::intersects() methods 2017-05-18 08:55:16 +00:00
qregion tst_QRegion: compile under QT_DISABLE_DEPRECATED_BEFORE=0x051200 2017-12-07 19:10:09 +00:00
qtransform Fix QTransform::transposed() result having wrong transformation type 2018-06-06 08:59:20 +00:00
qwmatrix Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00