diff options
| author | Christian Tismer <tismer@stackless.com> | 2022-09-19 12:00:14 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2022-09-26 13:12:00 +0200 |
| commit | 1f143f0440a32882587d4919d0855c7a3e2cd67c (patch) | |
| tree | c1d24fff22187a282920eb31daa997f9a37bed10 /examples/widgets/itemviews | |
| parent | b499d69cf3f5b2a1e74646ec2df4217fc0961713 (diff) | |
PyEnum: Increase Compatibility by allowing any int as enum value
This patch supplies a _missing_ function to every (Int)?Enum
class that creates the given integer as a nameless enum.
The missing object is created on-demand and kept in the dict
"_sbk_missing_" for re-use.
[ChangeLog][PySide6] New Python Enum/IntEnum now allows for missing
values like the Shiboken enums before, increasing compatibility.
Task-number: PYSIDE-1735
Task-number: PYSIDE-841
Change-Id: I436b536e0a29337663cc3bca5db4322d9cf0de74
Pick-to: 6.3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/itemviews')
0 files changed, 0 insertions, 0 deletions
