diff options
author | Christian Tismer <tismer@stackless.com> | 2022-04-10 17:22:14 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2022-05-23 22:45:33 +0200 |
commit | 8472a2b6eb32e6238e82f5778add908652b2cd82 (patch) | |
tree | 8fd91deb2d6114c0fcf77807b5c71e43acd206c4 /sources/pyside6 | |
parent | 79a23bc22ad635531c242280627d942e86fcfd45 (diff) |
PyEnum: Prepare to support both implementations
The enum implementation should be switchable between the
old and the new version. This switching is possible only
before PySide import.
This patch prepares the switching capability for the
signature module and installs fields that will affect
the global header files.
The new version can be selected by setting the environment
variable
PYSIDE63_OPTION_PYTHON_ENUM=1
or setting sys.pyside63_option_python_enum=1
[ChangeLog][PySide6] The signature module was prepared to support
both C++ enums and Python enums. This can be selected at startup.
Task-number: PYSIDE-1735
Change-Id: I14999e1049fbaaccd00f00d1b7b1257bc9287255
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 31deae2a0ea3725d038433f6be91119865a8f399)
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6')
-rw-r--r-- | sources/pyside6/libpyside/pysideqflags.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside6/libpyside/pysideqflags.cpp b/sources/pyside6/libpyside/pysideqflags.cpp index cd57b2bb9..84e87f038 100644 --- a/sources/pyside6/libpyside/pysideqflags.cpp +++ b/sources/pyside6/libpyside/pysideqflags.cpp @@ -41,6 +41,7 @@ #include <autodecref.h> #include <sbkenum.h> +#include <sbkenum_p.h> extern "C" { struct SbkConverter; |