summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2022-08-23 13:18:55 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-29 16:58:30 +0000
commit4c4db3dcd4321d7b32e401ebec732b0546393ada (patch)
tree177ee7384276d80c4d5d1048113c81a602dc9c69
parent6e8c13fc295b0da28125ec25244102fdb5b1fc29 (diff)
QDoc: Generate briefs also for QmlBasicType pages
Change-Id: I10fd907492b9bb684a00c6e374cedef94ad89799 Reviewed-by: Luca Di Sera <luca.disera@qt.io> (cherry picked from commit dc13c124db1b667a96147c5bb3cf263aa0dfb51e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/qdoc/htmlgenerator.cpp1
-rw-r--r--tests/auto/qdoc/generatedoutput/expected_output/qml-int.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/qdoc/htmlgenerator.cpp b/src/qdoc/htmlgenerator.cpp
index b4c5ecf72..9c9e4616c 100644
--- a/src/qdoc/htmlgenerator.cpp
+++ b/src/qdoc/htmlgenerator.cpp
@@ -1372,6 +1372,7 @@ void HtmlGenerator::generateQmlBasicTypePage(QmlBasicTypeNode *qbtn, CodeMarker
Sections sections(qbtn);
generateTableOfContents(qbtn, marker, &sections.stdQmlTypeSummarySections());
generateTitle(htmlTitle, Text() << qbtn->subtitle(), subTitleSize, qbtn, marker);
+ generateBrief(qbtn, marker);
const QList<Section> &stdQmlTypeSummarySections = sections.stdQmlTypeSummarySections();
for (const auto &section : stdQmlTypeSummarySections) {
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html b/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html
index e48918857..6306c2ac7 100644
--- a/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html
+++ b/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html
@@ -18,6 +18,9 @@
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">int QML Basic Type</h1>
+<!-- $$$int-brief -->
+<p>An integer basic type. <a href="#details">More...</a></p>
+<!-- @@@int -->
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">int <b><a href="qml-int.html#abs-method">abs</a></b>()</li>