QDoc: Add cross-module link test fixture


Cross-module documentation links must resolve into the published
output of the module that owns the target, not into the consumer
module's own output directory. A class in one module that joins a
`\group` defined in another should produce hrefs that traverse
across the module boundary; a prose `\l` reference to a page in
another module should rewrite its path the same way. QDoc has no
regression test surface for either path, so two distinct issues
sit unobserved. Prose `\l` and `\sa` references depend on
`HrefResolver` finding the upstream node and recomputing layout
across trees. Class-page "is part of GROUPS" listings, emitted
from the reference-data extractor on `\ingroup` and `\inmodule`
directives, depend on the merged placeholder collection node
reporting its content-origin module rather than the tree it
happens to live in. Without coverage, either path can regress
silently, and the two output pipelines — the legacy XML generator
and the new template-driven generator — can drift apart on the
same author input.

The new `cross_module_links` fixture stands up two cooperating
modules. `UpstreamWidgets` documents a `\group upstream-controls`
and a `\page upstreambutton.html` that joins it. `ConsumerModule`
authors a `\page consumer-index.html` that uses the upstream
group, and a `ConsumerSpace::ConsumerClass` whose documentation
declares `\inmodule UpstreamWidgets` and `\ingroup
upstream-controls`. The class-page addition activates the reference-data
listing code path; the page directive covers prose link
resolution. Expected baselines for both the legacy HTML and the new
TemplateHTML pipelines capture the current output verbatim, including
the symptoms that flow from a placeholder collection node reporting the
consumer tree's identity. The legacy pipeline short-circuits through the
merged url and emits a bare filename; the template pipeline reaches the
inclusion filter and emits an empty href. Both shapes are preserved as
the baseline so a subsequent fix produces a visible diff in every
affected snapshot.

Fixes: QTBUG-146772
Change-Id: I3574ec3fca025b58163c3994a95c55816320cbf9
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitce7da5304eafd729a00325c1cb62ecfb51f3bdb1
parent544bc2007c94ba6c7769db6067a3948b01c5ebfb
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 20 May 2026 14:27:21 +0000