summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdoc/generatedoutput/testdata
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-02-14 11:14:27 +0100
committerTopi Reinio <topi.reinio@qt.io>2020-03-06 10:40:11 +0100
commitfffed819ca8efeee79698aae07b27741f004f7e2 (patch)
tree4ef0dc1840dc3e18bb0f2f969dfefbc77c5ae6cf /tests/auto/qdoc/generatedoutput/testdata
parentdc8598ab1e441d9b49a3aac1e3812bf93f8a3211 (diff)
qdoc: Refactor automatic note generation for function nodes
Function nodes may have a number of automatically generated notes added to the documentation; as they share the same formatting, collect them into a single virtual function in Generator, and override it in DocBookGenerator. Call the virtual function in Generator::generateBody() after generating the text for the Doc instance. As we append the notes to the body, the order in which the notes appear may change slightly (if a function comment generates multiple notes). Add \note commands in the tests in preparation for a follow-up commit that utilizes the refactored code. Task-number: QTBUG-37355 Change-Id: Id92926e53b61e03a2d2feceda70987191b708975 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'tests/auto/qdoc/generatedoutput/testdata')
-rw-r--r--tests/auto/qdoc/generatedoutput/testdata/qml/type.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qdoc/generatedoutput/testdata/qml/type.cpp b/tests/auto/qdoc/generatedoutput/testdata/qml/type.cpp
index bf04bdb43..10a310a87 100644
--- a/tests/auto/qdoc/generatedoutput/testdata/qml/type.cpp
+++ b/tests/auto/qdoc/generatedoutput/testdata/qml/type.cpp
@@ -92,10 +92,14 @@
\qmlsignal Type::completed(int status)
This signal is emitted when the operation completed with \a status.
+
+ \note The corresponding handler is \c onCompleted.
*/
/*!
\qmlattachedsignal Type::configured()
This attached signal is emitted when the type was configured.
+
+ \note The corresponding handler is \c onConfigured.
*/