QDoc: Move default configuration into resources


Store a default configuration file, defaults.qdocconf, as an embedded
resource for the QDoc binary, and use Config::load() to set the defaults
when resetting the configuration system. This creates a centralized
place for the defaults in a format documented in the QDoc manual, and
paves a way for conditional profile-based configurations.

A limitation is imposed by the way Config tracks and changes the current
working directory: Configuration files under the resource system cannot
include() other .qdocconf files using relative paths. They can, however,
use absolute paths, including ':/'-prefixed ones.

Fixes: QTBUG-142180
Change-Id: I048175818ad8e9b8070c13515e61b9f5336dc527
Reviewed-by: David Boddie <david.boddie@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commit075e8a7a57482a3d0b088bf5d87ca93b25e69865
parent47d4231c62b80c7c23d01df35909dfed0232374e
authorTopi Reinio <topi.reinio@qt.io>
committerTopi Reinio <topi.reinio@qt.io>
commit timeThu, 5 Mar 2026 08:38:20 +0000