qt6-bb10/src
Edward Welbourne 6ae2bfad41 Fix doc and example of QLoggingCategory::installCategory()
Snippet [22] was unused and the example using snippet [21] neglected
to show how its oldCategoryFilter got initialized, which is what [22]
does. But it turns out the example code was crashy in any case, as it
left the oldCategoryFilter uninitialized (albeit probably null) until
the call to installFilter() had returned, and installFilter() calls
the new filter, so the new filter needs to check oldCategoryFilter
before calling it. The doc also failed to explain why it's OK to not
defer to the prior filter in these calls during installFilter(), so
revise the doc and example so that the latter behaves sensibly and
readers of the former are likely to use the function safely.

This amends commit 8f0654ceb8 which
added the snippets and the use of one of them, but not the other.

Fixes: QTBUG-49704
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: Iddb8d97b0bef417d8f16e7910730cfa59ea3e715
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2022-06-13 22:46:02 +00:00
..
3rdparty Update qt_attribution for harfbuzz 2022-05-24 15:05:44 +02:00
android Android 13: Fix warnings on starting an application 2022-06-13 13:37:36 +00:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib Fix doc and example of QLoggingCategory::installCategory() 2022-06-13 22:46:02 +00:00
dbus Remove more unused qreadwritelock.h includes 2022-05-17 18:49:31 +02:00
entrypoint Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
gui Print QScreen geometry debug state using the underlying types 2022-06-13 21:17:53 +02:00
network Unify QSslServer from QtWebSockets and QtHttpServer into QtNetwork 2022-06-04 02:22:56 +02:00
opengl Support cosmetic brush patterns in the pdf and opengl paint engines 2022-06-04 21:15:42 +02:00
openglwidgets QOpenGLWidget: Fix a typo in the public documentation 2022-05-27 22:47:28 +01:00
platformsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
plugins macOS: Resolve screen name via NSScreen on macOS 10.15+ 2022-06-13 21:17:53 +02:00
printsupport Move file-static const arrays out of qprint_p.h file 2022-06-04 00:29:50 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib FatalSignalHandler: print the signal name on crash 2022-06-08 20:39:18 +00:00
tools androiddeployqt: use QFile::exists instead of QDir().exists 2022-06-10 21:10:34 +02:00
widgets Fusion style: Fix menu item text being elided when mnemonic and && appear in the text 2022-06-13 18:34:27 +02:00
xml Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt