QDoc: Degrade unresolved autolinks to plain text


QDoc's autolink heuristic speculatively creates links for bare
identifiers such as macro names. When these can't be resolved,
the legacy HtmlGenerator silently falls back to plain text. The
template pipeline instead rendered them as broken anchor tags
with the raw identifier as the href.

Unresolved autolinks now degrade to plain text, matching the
legacy generator's behavior. Explicit links created with \l
continue to warn on resolution failure, preserving the
diagnostic distinction between intentional and speculative links.

Fixes: QTBUG-145113
Change-Id: I64872fa30a3b9a25ff7fc099fec64809bdec0cbf
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit7a1ab2f3cf3e5b9332c44b8c39fcd33d7fc44737
parenteb54247ce5359431e8c5b025e77144730d8ffcdc
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 23 Mar 2026 18:43:39 +0100