summaryrefslogtreecommitdiff
path: root/src/qdoc/generator.cpp
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2023-05-10 14:00:16 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2023-05-16 13:06:04 +0200
commit27afa48c9b6c070118aa93b8774da8b6398d13d4 (patch)
tree4daad152d66d889bb65fe1308c4338299d72715c /src/qdoc/generator.cpp
parent64eab97327fc4248b648bef6d6a17bf3ffdb1bd2 (diff)
downloadqttools-27afa48c9b6c070118aa93b8774da8b6398d13d4.tar.gz
qdoc: Wrap a <div> around the addendum note6.5
The addendum added to the C++ and QML methods, properties, and signals, lack the necessary styling. They are added as a simple HTML para, without the appropriate admonition CSS class, which is normally used for a \note. Change-Id: I10cb9d51c587fb21024168a57e8661f7da0ad323 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io> (cherry picked from commit 941a9b5e5963f8c0798415e3cb69f031da1f4109)
Diffstat (limited to 'src/qdoc/generator.cpp')
-rw-r--r--src/qdoc/generator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qdoc/generator.cpp b/src/qdoc/generator.cpp
index ec811554b..d368dfa98 100644
--- a/src/qdoc/generator.cpp
+++ b/src/qdoc/generator.cpp
@@ -1226,6 +1226,8 @@ void Generator::generateAddendum(const Node *node, Addendum type, CodeMarker *ma
{
Q_ASSERT(node && !node->name().isEmpty());
Text text;
+ text << Atom(Atom::DivLeft,
+ "class=\"admonition %1\""_L1.arg(generateNote ? u"note"_s : u"auto"_s));
text << Atom::ParaLeft;
if (generateNote) {
@@ -1302,7 +1304,8 @@ void Generator::generateAddendum(const Node *node, Addendum type, CodeMarker *ma
return;
}
- text << Atom::ParaRight;
+ text << Atom::ParaRight
+ << Atom::DivRight;
generateText(text, node, marker);
}