diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-03-21 21:32:37 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-03-23 17:09:59 +0100 |
commit | 81914251b0aa8215a680adac76ffb372af9bd4f4 (patch) | |
tree | e21c867c95a4149e569073eaa4c1f96101ce0b93 /sources | |
parent | 84f5d3fca336730508eeb0144d4ee42feff34f0c (diff) |
shiboken: Enable flags types in added functions
Add a search for flags entries to
translateType(AddedFunction::TypeInfo).
Task-number: PYSIDE-946
Task-number: PYSIDE-1241
Change-Id: I8f0092ad2dd546fdf8678864e49ad2940e7bb8dc
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp index 4b62ac4a5..2d546cadd 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp +++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp @@ -2068,6 +2068,8 @@ AbstractMetaType *AbstractMetaBuilderPrivate::translateType(const AddedFunction: return nullptr; type = typeDb->findType(typeName); + if (!type) + type = typeDb->findFlagsType(typeName); // test if the type is a template, like a container bool isTemplate = false; |