QDoc: Keep member links in their intended scope


When the TemplateGenerator encounters members with the same target name,
the links their detailed descriptions and see-also lists can end up
pointing to another member's section. The containing page doesn't
identify which member's target the author intended.

This change makes QDoc resolve member links in the context of the
documentation that contains them. This preserves the intended
destination, while keeping URLs relative to the page that displays the
content.

Fixes: QTBUG-151276
Task-number: QTBUG-151277
Pick-to: 6.12
Change-Id: I54225b907ed3d2e30efbe128259ba247599b4b19
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit96c5b2900879b3275f01be64e314f3abc578988a
parent03d589c93a8c0faa842c1683de5694cba11954d5
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 8 Oct 2026 07:33:24 +0000