diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-26 10:49:34 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-28 08:19:44 +0200 |
| commit | f6702a1bd089b4adba78d0ea4e6cc8aef7d9e885 (patch) | |
| tree | 9fec2b90f615e5da78e95a1061e83dead1c9cebb /sources/shiboken6/ApiExtractor/doxygenparser.cpp | |
| parent | 7809a047416eacb6f245160aa018127f5b0e8e81 (diff) | |
Refactor class Documentation
Replace the map by two fields of string type for detailed/brief and
add accessors. Make the constructor explicit and fix all occurrences
of implicit conversions.
Change QtDocGenerator::writeFormattedText() to take a QString
with the format instead of an instance of Documentation and add
convencience functions writeFormattedBriefText()
and writeFormattedDetailedText().
Change-Id: I4efaecc8cffeff16873fa3926c3f3b731b96bc5b
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/doxygenparser.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/doxygenparser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/doxygenparser.cpp b/sources/shiboken6/ApiExtractor/doxygenparser.cpp index a731479c3..90072c227 100644 --- a/sources/shiboken6/ApiExtractor/doxygenparser.cpp +++ b/sources/shiboken6/ApiExtractor/doxygenparser.cpp @@ -212,7 +212,7 @@ void DoxygenParser::fillDocumentation(AbstractMetaClass* metaClass) qCWarning(lcShibokenDoc, "%s", qPrintable(msgCannotFindDocumentation(doxyFilePath, metaClass, meta_enum, query))); } - meta_enum.setDocumentation(doc); + meta_enum.setDocumentation(Documentation(doc, {})); } } @@ -237,6 +237,7 @@ Documentation DoxygenParser::retrieveModuleDocumentation(const QString& name){ // Module documentation QString query = QLatin1String("/doxygen/compounddef/detaileddescription"); - return Documentation(getDocumentation(xquery, query, DocModificationList())); + const QString doc = getDocumentation(xquery, query, DocModificationList()); + return Documentation(doc, {}); } |
