diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-01 20:22:01 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-10 16:12:57 +0100 |
commit | 8e74bfa9558476007c59abc52eb776af3c1626c7 (patch) | |
tree | da169b1409bc04ce3ea3c49f0a2776ed92acd278 | |
parent | 39b384cc8b0c25cd1872347235af646ccef4f6e7 (diff) |
shiboken6: Do not try to qualify Qt namespace constants in default arguments
Amends 6c2c4c00bc38bc9dc7b3c2f82fa8b12053902e71.
Task-number: PYSIDE-1691
Change-Id: I6c8d09d098d3767eb8a518cfcf582a25c715e4a1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit a207cc3105a1b40ad9659b694eefbe95752c96fd)
-rw-r--r-- | sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp b/sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp index 75671b2ee..33b2cab5f 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp +++ b/sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp @@ -194,5 +194,6 @@ bool AbstractMetaBuilder::dontFixDefaultValue(QStringView expr) || expr == u"NULL" || expr == u"true" || expr == u"false" || (expr.startsWith(u'{') && expr.startsWith(u'}')) // initializer list || (expr.startsWith(u'[') && expr.startsWith(u']')) // array + || expr.startsWith(u"Qt::") // Qt namespace constant || isIntegerConstant(expr) || isFloatConstant(expr); } |