diff options
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetabuilder.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h index 1789ca2aa..93b9d9fd2 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h +++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h @@ -90,13 +90,18 @@ public: void setSkipDeprecated(bool value); + enum TranslateTypeFlag { + DontResolveType = 0x1 + }; + Q_DECLARE_FLAGS(TranslateTypeFlags, TranslateTypeFlag); + static AbstractMetaType *translateType(const TypeInfo &_typei, AbstractMetaClass *currentClass = nullptr, - bool resolveType = true, + TranslateTypeFlags flags = {}, QString *errorMessage = nullptr); static AbstractMetaType *translateType(const QString &t, AbstractMetaClass *currentClass = nullptr, - bool resolveType = true, + TranslateTypeFlags flags = {}, QString *errorMessage = nullptr); @@ -109,6 +114,8 @@ private: AbstractMetaBuilderPrivate *d; }; +Q_DECLARE_OPERATORS_FOR_FLAGS(AbstractMetaBuilder::TranslateTypeFlags); + #ifndef QT_NO_DEBUG_STREAM QDebug operator<<(QDebug d, const AbstractMetaBuilder &ab); #endif |