aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/qtdocparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/qtdocparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/qtdocparser.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/qtdocparser.cpp b/sources/shiboken6/ApiExtractor/qtdocparser.cpp
index b98226733..6d8a0eba6 100644
--- a/sources/shiboken6/ApiExtractor/qtdocparser.cpp
+++ b/sources/shiboken6/ApiExtractor/qtdocparser.cpp
@@ -242,12 +242,17 @@ void QtDocParser::fillDocumentation(AbstractMetaClass *metaClass)
const QString sourceFileName = sourceFile.absoluteFilePath();
QString errorMessage;
- ClassDocumentation classDocumentation = parseWebXml(sourceFileName, &errorMessage);
+ const ClassDocumentation classDocumentation = parseWebXml(sourceFileName, &errorMessage);
if (!classDocumentation) {
qCWarning(lcShibokenDoc, "%s", qPrintable(errorMessage));
return;
}
+ for (const auto &p : classDocumentation.properties) {
+ Documentation doc(p.description, p.brief);
+ metaClass->setPropertyDocumentation(p.name, doc);
+ }
+
QString docString = applyDocModifications(metaClass->typeEntry()->docModifications(),
classDocumentation.description);