qt5base-lts/tests/auto/gui/painting
Volker Hilsheimer b14b1c99f8 Rename QRangeCollection to QPageRanges, make it a proper value type
The type is specific about printing, so give it a name in line with
QPageLayout and QPageSize.

As per API review comment, it's not clear why this type should not be a
regular, copyable and movable value type. It stores a list of intervals.
Give it value-type semantics, as an implicitly shared class.

Convert the parse method into a static factory function.

Add a Range type and use it instead of the semantic-free QPair.
Move QPrinter getter into QPagedPainteDevice, make it return a copy
rather than a pointer, and add a setter.

Extend test case to cover all members and more merge cases. Fix bugs
found that way.

Fixes: QTBUG-88113
Change-Id: If17ea4d410d49f16b097e88b7979db5d72add820
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-11-08 11:49:54 +01:00
..
qbrush CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcolor CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcolorspace CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpagelayout CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpageranges Rename QRangeCollection to QPageRanges, make it a proper value type 2020-11-08 11:49:54 +01:00
qpagesize CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpaintengine CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpainter Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qpainterpath CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpainterpathstroker CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpathclipper CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpdfwriter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpen CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpolygon CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qregion CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtransform CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02: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
painting.pro Rename QRangeCollection to QPageRanges, make it a proper value type 2020-11-08 11:49:54 +01:00