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-02 11:02:15 +0100 |
| commit | a207cc3105a1b40ad9659b694eefbe95752c96fd (patch) | |
| tree | a0309edf85253e71e45080d080abb8979112f7ec /sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp | |
| parent | ca26bd0abc36bb94f11b21353ba0c5e71fab36cf (diff) | |
shiboken6: Do not try to qualify Qt namespace constants in default arguments
Amends 6c2c4c00bc38bc9dc7b3c2f82fa8b12053902e71.
Task-number: PYSIDE-1691
Pick-to: 6.2
Change-Id: I6c8d09d098d3767eb8a518cfcf582a25c715e4a1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp')
| -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 1a2e7d2ac..110825d8a 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp +++ b/sources/shiboken6/ApiExtractor/abstractmetabuilder_helpers.cpp @@ -213,5 +213,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); } |
