QDoc: Fix auto-linking of qualified names


When documentation text references a qualified name such as
QtCoap::NoSecurity or QCoapReply::notified, readers expect the
reference to render as a link to the declaring page. Instead, these
references fall through link resolution and emit as plain text,
leaving readers without a jump to the definition. The failure is
most visible for enum values and signals written inline without
explicit \l markup — exactly the form encouraged for readable prose.

The root cause is that general target lookup splits the link text on
the scope resolution operator before searching, fragmenting a
well-formed qualified name into pieces the lookup cannot reassemble.
Target resolution now follows the same path-and-fragment convention
already used elsewhere in the database, so qualified names stay
intact through lookup and resolve to their declaring nodes. Expected
outputs in the template generator fixtures capture the restored
links, confirming the fix lands in both HTML and Markdown renderings.

Fixes: QTBUG-145938
Change-Id: Iada0c63763fe3813d0be9f906a1ad0edc483154d
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit0c269e26ff3eb0b85fc097d0eff4e2c7ae024424
parent07d21e4ba1f46b500ea9e1da53a42d1b80c102da
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 22 Apr 2026 07:48:17 +0000