qt6-bb10/tests/auto/gui/painting
Jarkko Koivikko e28a664ae1 pagelayout: Fix inaccuracy in marginsPixels and paintRectPixels
Do not use rounded value for conversion, which gives inaccurate result.

Example case: typical margin for A4 paper size is 8.4 pt. At 600 dpi,
the old code was using rounded point value of 8, which produces an
incorrect result:

8 / (72.0 / 600) = 67 pixels

The correct margin is of course:

8.4 / (72.0 / 600) = 70 pixels

Pick-to: 6.6
Change-Id: I44b2eeabb82fd3bf8e2dcfcba66ae96cde763875
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-09 04:46:24 +02: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 tests/auto/*: port Q_FOREACH to ranged-for, make container const 2023-08-19 16:29:30 +03:00
qpainterpath CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02: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