qt6-bb10/tests/auto/gui/painting
Noah Davis a4f44e0698 QPainterPath: Fix boundingRect and controlPointRect ignoring start point
The boundingRect and controlPointRect did not use the start point from
the `QPainterPath(const QPointF &startPoint)` constructor until the
`dirtyBounds` or `dirtyControlBounds` member variables were set to true.
Those two are false on construction. This bug was fixed by adding a new
constructor for QPainterPathPrivate that initializes the `elements`,
`bounds` and `controlBounds` member variables with the start point from
the constructor.

There is also an autotest to verify that the top left of the
boundingRect and controlPointRect are at the same position as
elementAt(0) when the start point constructor is used.

[ChangeLog][QtGui][QPainterPath] boundingRect() and controlPointRect()
now use the start point from QPainterPath(const QPointF &startPoint).

Pick-to: 6.7 6.6 6.5
Change-Id: I7bf30364406c14ed60f75d24b78a9a5535f75d93
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-01-30 21:28:19 +00:00
..
qbrush CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qcolor CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qcolorspace Increase setup precision and reduce test precision 2023-08-17 22:35:34 +02:00
qcolortransform CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpagelayout pagelayout: Fix inaccuracy in marginsPixels and paintRectPixels 2023-12-09 04:46:24 +02:00
qpageranges CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpagesize pagesize: Fix pixel overflow in QPageSize::sizePixels and rectPixels 2023-12-09 04:46:24 +02:00
qpaintengine CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpainter QRadialGradient: Fix undefined behavior 2024-01-08 15:00:16 +02:00
qpainterpath QPainterPath: Fix boundingRect and controlPointRect ignoring start point 2024-01-30 21:28:19 +00:00
qpainterpathstroker CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpathclipper CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpdfwriter CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpen CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpolygon CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qregion CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qtransform CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qwmatrix Get rid of QMatrix 2020-02-28 08:57:57 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00