From a4d4aad793561ee3e397595f8a1db71651bc1b1b Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 12 May 2020 22:33:25 +0200 Subject: qdoc: Fix regression in HeaderNode name handling Node::plainFullName() constructs a fully qualified name for a node, traversing the chain of parents until it comes across the root namespace or a HeaderNode - but if the start node was already a header, it incorrectly returned an empty string as the node name. Fix the issue and add a test for output generated by \headerfile command. Pick-to: 5.15 Fixes: QTBUG-84070 Change-Id: Ib214c53be8ed0eea98708219a00ba43970cd4177 Reviewed-by: Paul Wicking --- .../headerfile-docbook/testheader.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/auto/qdoc/generatedoutput/expected_output/headerfile-docbook/testheader.xml (limited to 'tests/auto/qdoc/generatedoutput/expected_output/headerfile-docbook/testheader.xml') diff --git a/tests/auto/qdoc/generatedoutput/expected_output/headerfile-docbook/testheader.xml b/tests/auto/qdoc/generatedoutput/expected_output/headerfile-docbook/testheader.xml new file mode 100644 index 000000000..f3461fb1a --- /dev/null +++ b/tests/auto/qdoc/generatedoutput/expected_output/headerfile-docbook/testheader.xml @@ -0,0 +1,22 @@ + + + + +HeaderFile +HeaderFile Reference Documentation + +A header file. + + + + +Header + +TestHeader + + + + +Detailed Description + + -- cgit v1.2.1