qt5base-lts/tests/auto/gui/painting
Giuseppe D'Angelo 0b4ccbf81e QPainterPath: fix handling of fill rules
fillRule() contained a major blunder: instead of checking if the
d-pointer was allocated, and return a default value if it wasn't,
it checked whether the path contained any points. This means that

  QPainterPath p;
  p.setFillRule(x);
  Q_ASSERT(p.fillRule() == x);

was failing.

As a drive-by to test this change, fix another mistake in clear():
clear is documented to clear the elements in a path, but instead
it also changed the fill rule.

This commit partially reverses 697910e5fb.

Change-Id: Ieb8145694b672439c3380d9ccb87d1206a2dd115
Pick-to: 5.12 5.15 6.0 6.1
Done-with: Milian Wolff
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2021-03-26 10:45:46 +01:00
..
qbrush Fix: QBrush autotest failure on Android and Wayland 2021-03-11 07:03:45 +00:00
qcolor Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcolorspace Add QColorSpace::description 2021-03-04 22:37:08 +01:00
qpagelayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpageranges Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpagesize Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpaintengine Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpainter Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpainterpath QPainterPath: fix handling of fill rules 2021-03-26 10:45:46 +01:00
qpainterpathstroker Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpathclipper Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpdfwriter Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpen Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpolygon Remove the qmake project files 2021-01-07 15:32:28 +01:00
qregion Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtransform Remove the qmake project files 2021-01-07 15:32:28 +01:00
qwmatrix Get rid of QMatrix 2020-02-28 08:57:57 +01:00
CMakeLists.txt Rename QRangeCollection to QPageRanges, make it a proper value type 2020-11-08 11:49:54 +01:00