qt5base-lts/tests/auto/gui/painting
Ahmad Samir 8e0281a8be tests/auto/: port Q_FOREACH to ranged-for, local const containers
These are local containers that are either:
- Already const and didn't need Q_FOREACH to begin with
- Can be simply made const, just by adding const keyword

In one case the unittest checked that the container's size is 1, so use
list.first() instead of a for-loop.

In files where Q_FOREACH isn't used any more, remove
"#undef QT_NO_FOREACH". Also remove those files from NO_PCH_SOURCES.

Drive-by changes:
- Remove parenthesis from one-line for-loops
- Make the for-loop variable a const& where a copy isn't needed

Task-number: QTBUG-115839
Change-Id: Ide34122b9cda798b80c4ca9d2d5af76024bc7a92
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-08-19 16:29:25 +03: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 CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpageranges CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qpagesize CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +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, local const containers 2023-08-19 16:29:25 +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