qt5base-lts/tests/manual/dialogs
Marc Mutz 11d6932560 Mark all of Qt as free of Q_FOREACH, except where it isn't
The density of Q_FOREACH uses in this and some other modules is still
extremely high, too high for anyone to tackle in a short amount of
time. Even if they're not concentrated in just a few TUs, we need to
make progress on a global QT_NO_FOREACH default, so grab the nettle
and stick to our strategy:

Mark the whole of Qt with QT_NO_FOREACH, to prevent new uses from
creeping in, and whitelist the affected TUs by #undef'ing
QT_NO_FOREACH locally, at the top of each file. For TUs that are part
of a larger executable, this requires these files to be compiled
separately, so add them to NO_PCH_SOURCES (which implies
NO_UNITY_BUILD_SOURCES, too).

In tst_qglobal.cpp and tst_qcollections.cpp change the comment on the
#undef QT_NO_FOREACH to indicate that these actually test the macro.

Task-number: QTBUG-115839
Change-Id: Iecc444eb7d43d7e4d037f6e155abe0e14a00a5d6
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-08-19 05:19:42 +00:00
..
CMakeLists.txt Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
colordialogpanel.cpp Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00
colordialogpanel.h Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00
dialogs.pro Update version checks in tests/manual 2019-11-13 15:00:51 +01:00
filedialogpanel.cpp Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
filedialogpanel.h Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00
fontdialogpanel.cpp Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00
fontdialogpanel.h Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00
main.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
messageboxpanel.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
messageboxpanel.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
printdialogpanel.cpp Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
printdialogpanel.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
printdialogpanel.ui QPrinter/Windows: Fix handling of native paper source ids. 2014-05-23 22:18:41 +02:00
utils.cpp Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
utils.h Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00
wizardpanel.cpp Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00
wizardpanel.h Add window-modal show option to dialogs manual test 2022-09-13 18:13:00 +02:00