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>
| commit | c2cf4d357ea5aa784dfcbf9c249e1ee22034262f |
| parent | e3c14103dc356f6f07b227f6cce8e2bd16e83894 |
| author | Topi Reinio <topi.reinio@qt.io> |
| committer | Topi Reinio <topi.reinio@qt.io> |
| commit time | Tue, 24 Feb 2026 13:51:10 +0000 |
- M src/qdoc/qdoc/src/qdoc/collectionnode.cpp
- M src/qdoc/qdoc/src/qdoc/collectionnode.h
- M src/qdoc/qdoc/src/qdoc/node.h
- M src/qdoc/qdoc/tests/generatedoutput/expected_output/qmlpropertygroups-docbook/qml-qdoc-test-parent.xml
- M src/qdoc/qdoc/tests/generatedoutput/expected_output/qmlpropertygroups/qml-qdoc-test-parent.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/docbook/qml-int.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/docbook/qml-qdoc-test-abstractparent.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/docbook/qml-qdoc-test-child.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/docbook/qml-qdoc-test-doctest.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/docbook/qml-qdoc-test-item.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/docbook/qml-qdoc-test-type.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/docbook/qml-qdoc-test-yetanotherchild.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/qml-int.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/qml-qdoc-test-abstractparent.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/qml-qdoc-test-child.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/qml-qdoc-test-doctest.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/qml-qdoc-test-item.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/qml-qdoc-test-type.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/qml-qdoc-test-yetanotherchild.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/html/test.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/docbook/qml-int.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/docbook/qml-qdoc-test-abstractparent.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/docbook/qml-qdoc-test-child.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/docbook/qml-qdoc-test-doctest.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/docbook/qml-qdoc-test-item.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/docbook/qml-qdoc-test-type.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/docbook/qml-qdoc-test-yetanotherchild.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/qml-int.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/qml-qdoc-test-abstractparent.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/qml-qdoc-test-child.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/qml-qdoc-test-doctest.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/qml-qdoc-test-item.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/qml-qdoc-test-type.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/qml-qdoc-test-yetanotherchild.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/html/test.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/modulestate/expected/html/modulestate.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/modulestate/src/classes_in_stateful_module.h
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/modulestate/src/module_in_a_state.qdoc