QDoc: Define logging categories in QDocLib


QDoc's logging categories are declared in a QDocLib header but
defined in driver-side code. The qdoc binary masks the boundary
inversion because it links the driver and QDocLib into a single
target, but any QDocLib unit that needs to log hits an undefined
symbol the moment it is built outside the driver. The QDocLib
unit tests already carry a duplicated stub of the missing
definitions just to satisfy the linker, baking the inversion
into test infrastructure rather than fixing it.

The categories now live next to the header that declares them.
The driver continues to receive the symbols through its
dependency on QDocLib, the unit tests link cleanly without the
stub, and a QDocLib header now declares categories that QDocLib
itself defines.

Fixes: QTBUG-146600
Change-Id: I4a4a4ab8921ec0ad2f615767aa1a8543a3b8ab9d
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitb2a3206630a6cba2fcfb1abfe2223a67582fe78f
parent30272ec3c985ee617b67ab398fe8260d58256cf4
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 7 May 2026 09:20:44 +0000