aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/qtdocparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-10 15:28:55 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-11 17:14:14 +0000
commit154ef5831fcae56f9cbf53301b410a21bbdd6265 (patch)
treec8322efaf9dfe208173b769c9106bb968e659a09 /sources/shiboken6/ApiExtractor/qtdocparser.cpp
parentc527b0bac89679aa01fbc409077dd5640fc59c9b (diff)
shiboken6: Port QPropertySpec to use QSharedDataPointer
Change the client code to store it by value. Use a std::optional to replace the pointer. Replace the pointer QPropertySpec* stored in AbstractMetaFunction by a the index of the property in the enclosing class. Change-Id: Iffca9e0a6f311534ba001dc2b34bbf5ff7c01813 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/qtdocparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/qtdocparser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/qtdocparser.cpp b/sources/shiboken6/ApiExtractor/qtdocparser.cpp
index 6ce3432d7..f71e84432 100644
--- a/sources/shiboken6/ApiExtractor/qtdocparser.cpp
+++ b/sources/shiboken6/ApiExtractor/qtdocparser.cpp
@@ -177,8 +177,9 @@ QString QtDocParser::queryFunctionDocumentation(const QString &sourceFileName,
// Properties
if (func->isPropertyReader() || func->isPropertyWriter() || func->isPropertyResetter()) {
+ const auto prop = metaClass->propertySpecs().at(func->propertySpecIndex());
const QString propertyQuery = classQuery + QLatin1String("/property[@name=\"")
- + func->propertySpec()->name() + QLatin1String("\"]/description");
+ + prop.name() + QLatin1String("\"]/description");
const QString properyDocumentation = getDocumentation(xquery, propertyQuery, funcModifs);
if (properyDocumentation.isEmpty())
*errorMessage = msgCannotFindDocumentation(sourceFileName, metaClass, func, propertyQuery);