QDoc: Decouple HrefResolver from Generator statics


HrefResolver calls Generator static functions for anchor
sanitization, QML type context resolution, and link error
suppression. It also creates a fresh inclusion policy from
the global configuration on every URL computation call.
These hidden dependencies make HrefResolver difficult to
test in isolation and tie it to Generator's global state.

This moves all dependencies into the configuration struct
as injected callbacks and values. The inclusion policy is
stored in the config rather than created per call. The QML
type context callback returns a const pointer, reflecting
its read-only nature in inheritance resolution. HrefResolver
no longer includes any Generator or Config headers and can
be tested with plain struct construction.

Fixes: QTBUG-144552
Change-Id: I52cc6b2e341820b50554ce07e3d5c93b8657af7a
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commita71080e59efe54d14cbc78cc601bc72a037d2f51
parent76128c044194d944ffde8f7d0723b2fa0c961c5d
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 11 Mar 2026 15:00:36 +0100