aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2022-12-15 14:53:15 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-12-15 19:21:40 +0000
commit7e5c6241a783c8072d3113232bbc3f7495c626d3 (patch)
tree463f60689ae9e24baf1fc2f23693cf624362d31a
parent305226482cd45e0ff8d1ba69bf4fb5167fb585cd (diff)
PyEnum: Fix a case where Enum is used instead of Flag
The automatic assignment of Flag vs. Enum does not always work, like in `StyleStrategy`. This was actually already with old enums. Change-Id: I09407af7fee713a9ad2ce24578290e93f341e7d7 Fixes: PYSIDE-628 Task-number: PYSIDE-1735 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e5976250c03df35b2564b11db546a08e7c75f71d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml
index ca7006325..f6e98b5cf 100644
--- a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml
+++ b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml
@@ -644,7 +644,7 @@
<enum-type name="Stretch" python-type="IntEnum"/>
<enum-type name="Style"/>
<enum-type name="StyleHint"/>
- <enum-type name="StyleStrategy"/>
+ <enum-type name="StyleStrategy" python-type="Flag"/>
<enum-type name="Weight" python-type="IntEnum"/>
<enum-type name="HintingPreference" since="4.8" revision="4800"/>
<extra-includes>