QDoc: Carry upstream module identity into placeholder merge


Cross-module \ingroup and \inmodule processing creates a placeholder
CollectionNode in the consumer's primary tree, and the merge step
mirrors title and url from the authoritative version that lives in
the upstream module's tree. After merge the placeholder is self-
describing for everything readers and link resolvers tend to ask
about, with one exception: which module owns the content?

Code that needs to emit a cross-module href has to answer that
question to compute a layout-aware URL prefix, and neither of the
obvious readings work on a placeholder. The placeholder's tree()
returns the consumer that referenced the collection; the
placeholder's per-node physicalModuleName is empty because
collection nodes never carry it. The merge step has the right
answer in hand at the moment it copies the scalar facts across, but
nothing has been recording it.

The merge step now records the upstream tree's physical module name
on the placeholder alongside the title and url copies. The field
stays empty for collections that are themselves the source of truth,
so downstream consumers can still fall back to the tree-level
identity in that case. Behavior is unchanged at this commit because
no reader consults the new field yet.

Task-number: QTBUG-146866
Change-Id: I0e47fbabea027e55fae8e6ca24a360615c16832c
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
Reviewed-by: David Boddie <david.boddie@qt.io>
commitf375a972f4d051c6d22669f6f5d37854ee5981dd
parent4168e2b37d55d107ebc6c308dc54cec853b87cab
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 20 May 2026 14:27:25 +0000