aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/typesystemparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-29 07:35:34 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-29 07:35:34 +0200
commit3bbcb7b0e6e0342569aa155d695bca46a7459eb0 (patch)
treee3675d77f409db4ecbc4f92cdfdbfa62763cb2d4 /sources/shiboken2/ApiExtractor/typesystemparser.cpp
parent9881b68c4c7bc1715cd266c41c63a3a918d83b07 (diff)
parent50247e7d4a67e892a85dff7472f889bac97c91c7 (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typesystemparser.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/typesystemparser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystemparser.cpp b/sources/shiboken2/ApiExtractor/typesystemparser.cpp
index f54ad50f4..b71a247f3 100644
--- a/sources/shiboken2/ApiExtractor/typesystemparser.cpp
+++ b/sources/shiboken2/ApiExtractor/typesystemparser.cpp
@@ -70,6 +70,7 @@ static inline QString formatAttribute() { return QStringLiteral("format"); }
static inline QString generateUsingAttribute() { return QStringLiteral("generate-using"); }
static inline QString classAttribute() { return QStringLiteral("class"); }
static inline QString generateAttribute() { return QStringLiteral("generate"); }
+static inline QString generateGetSetDefAttribute() { return QStringLiteral("generate-getsetdef"); }
static inline QString genericClassAttribute() { return QStringLiteral("generic-class"); }
static inline QString indexAttribute() { return QStringLiteral("index"); }
static inline QString invalidateAfterUseAttribute() { return QStringLiteral("invalidate-after-use"); }
@@ -2259,6 +2260,10 @@ bool TypeSystemParser::parseProperty(const QXmlStreamReader &, const StackElemen
property.type = attributes->takeAt(i).value().toString();
} else if (name == QLatin1String("set")) {
property.write = attributes->takeAt(i).value().toString();
+ } else if (name == generateGetSetDefAttribute()) {
+ property.generateGetSetDef =
+ convertBoolean(attributes->takeAt(i).value(),
+ generateGetSetDefAttribute(), false);
}
}
if (!property.isValid()) {