diff options
author | Thibaut Cuvelier <cuvelier.thibaut@gmail.com> | 2023-02-10 02:51:11 +0100 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2023-04-26 14:43:23 +0200 |
commit | 102ebf0ee78b43e73bf9a1292fd42060540cdb26 (patch) | |
tree | a112b45d56e422f2ad5c554fa0b8adaf3723fbe2 /src/qdoc/qdoc/docbookgenerator.h | |
parent | aa24730660aec04871ac72b8c829b8e50909e47c (diff) | |
download | qttools-102ebf0ee78b43e73bf9a1292fd42060540cdb26.tar.gz |
DocBook: introduce a member variable to enable 5.2 tags
The main goal is to make the code easier to read and check.
This way, a bug was found: a reversed condition. Extensions
are not supposed to be enabled by default, but still were
for parts of the documentation.
Pick-to: 6.5
Change-Id: I5425c658d8f8adb368a12967a679b0c09851cf6a
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/qdoc/docbookgenerator.h')
-rw-r--r-- | src/qdoc/qdoc/docbookgenerator.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qdoc/qdoc/docbookgenerator.h b/src/qdoc/qdoc/docbookgenerator.h index fe9f9ba3a..be80f38c2 100644 --- a/src/qdoc/qdoc/docbookgenerator.h +++ b/src/qdoc/qdoc/docbookgenerator.h @@ -136,8 +136,9 @@ private: void generateSynopsisInfo(const QString &key, const QString &value); void generateModifier(const QString &value); - bool m_inListItemLineOpen {}; - int currentSectionLevel {}; + // Generator state when outputting the documentation. + bool m_inListItemLineOpen { false }; + int currentSectionLevel { 0 }; QStack<int> sectionLevels {}; QString m_qflagsHref {}; bool m_inTeletype { false }; @@ -154,11 +155,13 @@ private: unsigned m_inList { 0 }; // Depth in number of nested lists. bool m_rewritingCustomQmlModuleSummary { false }; + // Generator configuration, set before starting the generation. QString m_project {}; QString m_projectDescription {}; QString m_naturalLanguage {}; QString m_buildVersion {}; QXmlStreamWriter *m_writer { nullptr }; + bool m_useDocBook52 { false }; // Enable tags from DocBook 5.2. Also called "extensions". Config *m_config { nullptr }; }; |