diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2023-05-10 14:00:16 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2023-05-12 10:05:12 +0000 |
commit | 941a9b5e5963f8c0798415e3cb69f031da1f4109 (patch) | |
tree | 97a126f32417149bca99bde76af630c80ecfa537 /src | |
parent | eea32dd3313e0370b7a7406f8fe8451865a71007 (diff) | |
download | qttools-941a9b5e5963f8c0798415e3cb69f031da1f4109.tar.gz |
qdoc: Wrap a <div> around the addendum note
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.
Pick-to: 6.5
Change-Id: I10cb9d51c587fb21024168a57e8661f7da0ad323
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qdoc/qdoc/generator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qdoc/qdoc/generator.cpp b/src/qdoc/qdoc/generator.cpp index 0381040d9..ad58b7f44 100644 --- a/src/qdoc/qdoc/generator.cpp +++ b/src/qdoc/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); } |