diff options
author | Christian Tismer <tismer@stackless.com> | 2022-11-02 13:19:22 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2022-11-03 12:07:21 +0100 |
commit | 7fde6c515363864f0f16edd0f447a61369d09935 (patch) | |
tree | 5835bd5179da6862b1f889ee1278b681e8c96d9b | |
parent | 1ab21cc38197104ccaef0fd3049873e175b69b3c (diff) |
PyEnum: Update list of IntEnum to keep compatibility in 6.4, addition
The list of IntEnum overrides has been updated a bit.
We adjust this list accordingly to keep compatibility.
Task-number: PYSIDE-1735
Change-Id: I20ee82637020d5b26f5acedf5b98b8831e3b7f73
Pick-to: 6.3 6.4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 2 | ||||
-rw-r--r-- | sources/shiboken6/generator/shiboken/cppgenerator.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index 3a716a941..3af5cd6a4 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -563,7 +563,7 @@ <enum-type name="EventPriority"/> <enum-type name="FillRule"/> <enum-type name="FindChildOption" flags="FindChildOptions"/> - <enum-type name="FocusPolicy"/> + <enum-type name="FocusPolicy" python-type="IntFlag"/> <enum-type name="FocusReason"/> <enum-type name="GestureFlag" flags="GestureFlags" since="4.6"/> <enum-type name="GestureState" since="4.6"/> diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp index 5fe171c25..82586bdf0 100644 --- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp +++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp @@ -416,6 +416,7 @@ static QSet<QString> useIntSet() // note: "QUrl::UrlFormattingOption" is set as IntFlag without flags /* IntFlag */ u"PySide6.QtCore.QUrl.UrlFormattingOption"_s, /* IntFlag */ u"PySide6.QtCore.Qt.AlignmentFlag"_s, + /* IntFlag */ u"PySide6.QtCore.Qt.FocusPolicy"_s, /* IntEnum */ u"PySide6.QtCore.Qt.GestureType"_s, /* IntEnum */ u"PySide6.QtCore.Qt.ItemDataRole"_s, /* IntEnum */ u"PySide6.QtCore.Qt.Key"_s, |