From 86bb108e06be9a4e67101f5fa1980563c8ef9e14 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 8 Dec 2020 14:12:43 +0100 Subject: shiboken6: Enable debug streaming of the CodeModel enumerations Add the Q_GADGET/Q_ENUM declarations. Change-Id: I9f519a655b5c35906b40c79867147a1df39cf0ed Reviewed-by: Christian Tismer --- sources/shiboken6/ApiExtractor/parser/codemodel.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sources/shiboken6/ApiExtractor/parser/codemodel.h b/sources/shiboken6/ApiExtractor/parser/codemodel.h index 2f8dbaef1..d1703cb33 100644 --- a/sources/shiboken6/ApiExtractor/parser/codemodel.h +++ b/sources/shiboken6/ApiExtractor/parser/codemodel.h @@ -52,6 +52,7 @@ class SourceLocation; class CodeModel { + Q_GADGET public: Q_DISABLE_COPY(CodeModel) @@ -60,6 +61,7 @@ public: Protected, Private }; + Q_ENUM(AccessPolicy) enum FunctionType { Normal, @@ -70,12 +72,14 @@ public: Signal, Slot }; + Q_ENUM(FunctionType) enum ClassType { Class, Struct, Union }; + Q_ENUM(ClassType) public: CodeModel(); -- cgit v1.2.3