QDoc: Keep shared documentation in WebXML output
When processing shared comment nodes (SCNs), QDoc ties the documentation
to the SCN, not each underlying node (e.g. each overload in an overload
set or similar). However, when generating WebXML output, the visitor
doesn't respect this convention and only queries the node's `Doc`. The
result is that documentation based on WebXML output drops output for
SCNs.
This changes modifies the WebXML writer such that shared prose is
embedded in its output. This brings it closer to parity with output from
other generators.
Pick-to: 6.12
Fixes: QTBUG-149524
Change-Id: I978fb0fb0be6110e377cd6a3eee1a14cc81c94d4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
Reviewed-by: David Boddie <david.boddie@qt.io>
| commit | 1be6bf40ddafc52689b0d41f9318423dd0331f68 |
| parent | 1659b113fb0bf925bb170fe34be393ea77b1afbf |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Thu, 27 Aug 2026 13:31:17 +0000 |
- M src/qdoc/qdoc/src/qdoc/webxmlgenerator.cpp
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/testqdoc-test.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/testqdoc.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/testqdoc-test.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/testqdoc.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/multiple_overloads_test/expected/webxml/testdate.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/multiple_overloads_test/expected/webxml/testdatetime.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/multiple_overloads_test/expected/webxml/testpositiondependent.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/multiple_overloads_test/expected/webxml/testtime.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/scopedenum/expected/webxml/testqdoc-test.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/scopedenum/expected/webxml/testqdoc.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/testtemplate/expected/webxml/testqdoc-test.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/testtemplate/expected/webxml/testqdoc.webxml