diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-01-28 10:51:31 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-01-30 22:37:59 +0000 |
| commit | 108d82d2ca5323652a50706b37f829b9f0457367 (patch) | |
| tree | 5ccdf68dccc1cf01f72b0142bd62ef6aa862b954 /build_scripts/platforms/unix.py | |
| parent | 9f32cff389da26e667ec0f8b3c7fa9814d46a4d7 (diff) | |
Convert QVariant to Enum types
Before this patch, the conversion from QVariant->enum in Shiboken was
same as the conversion from QVariant->int. So, the user will have to
explicitly convert the returned integer to the original enum type.
With this patch, an enum type is considered as an Object type rather
than an int type. This enables the enum type to be considered as itself.
Added tests for all conversions of QVariant types.
Pick-to: 6.2
Fixes: PYSIDE-1798
Change-Id: I18acc08e1f59ac7df844444d0ad6950e1d70ab21
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts/platforms/unix.py')
0 files changed, 0 insertions, 0 deletions
