aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/abstractmetabuilder.h
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2019-09-10 09:38:36 +0200
committerFriedemann Kleint <[email protected]>2019-09-12 08:18:25 +0200
commit78c0e308194408ab9943c0ba71d28cfb483ac394 (patch)
tree554d6c1c96fd2440277b1322fd3faee78b67a8e3 /sources/shiboken2/ApiExtractor/abstractmetabuilder.h
parentaeacefcdccdc3a0cb5e9f405fb3af3276a987c08 (diff)
shiboken: Introduce flags for AbstractMetaBuilder*::translateType*
This is a preparation for further extensions. Change-Id: I5279f351f7964f17ee3ca92386c10d3b90b5d8c8 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.h')
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetabuilder.h11
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