QDoc: Skip already-resolved links and clear broken link hrefs


The link resolver now checks whether a link has already been resolved
before attempting node lookup. Pre-resolved links pass through
unchanged, which enables content built outside the resolver — such as
exception member links in thread safety admonitions — to coexist with
unresolved topic links in the same content block list.

Broken links now have their href cleared after the warning is emitted.
This ensures templates fall back to rendering plain text rather than
producing anchor tags with unresolvable targets. The legacy generators
exhibited the same fallback behavior when topic lookups failed during
extraction.

Fixes: QTBUG-145738
Change-Id: I44342a2c64d57eeaa3af4db3fe59a37855b58cd3
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitf7278ebfac5fbbbac1820f5ea06e48d5fbdb7934
parent33d98d0c9922c7a807f31ea8d9b0bb97aaec06f6
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 10 Apr 2026 13:59:06 +0200