QDoc: Propagate modules' status to their members


Using a status command such as \internal, \preliminary, or
\deprecated on a \module or \qmlmodule topic did not
propagate the status to the module's members.

Fix this by relaying the status to member Nodes in
CollectionNode::addMember(). In addition, make
Node::setStatus() virtual and override it in
CollectionNode to update the status of all members.

There are some exceptions where we do not do this: If the
collection is not seen (documented) in the current project,
QDoc sets the collection's status as internal. However,
this may be because of a documentation issue (the author
forgot to document a module) for which QDoc has issued a
warning already. As a corner case, a \namespace topic may
be a member of a \module that is documented elsewhere.
There's no separation between these two cases - that is,
members with no documented module in the same project have
to manage their own status.

Status propagation applies to API entities only; For
example, \page topics in a \group collection do not
inherit the group's status.

If a collection member sets its own custom status, that one
takes priority.

Pick-to: 6.11 6.11.0
Fixes: QTBUG-144445
Change-Id: I5e09d846bd99cad8fbb08b611742ad1fddd2d823
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commitc2cf4d357ea5aa784dfcbf9c249e1ee22034262f
parente3c14103dc356f6f07b227f6cce8e2bd16e83894
authorTopi Reinio <topi.reinio@qt.io>
committerTopi Reinio <topi.reinio@qt.io>
commit timeTue, 24 Feb 2026 13:51:10 +0000