diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-06-03 10:48:50 +0200 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-06-15 19:49:46 +0200 |
| commit | 20eb4f94c637d20461f1fef16942841803ada909 (patch) | |
| tree | a36abc1889d93809d1f35206c3da8cec0f1d0ff5 /tools/qtpy2cpp_lib/visitor.py | |
| parent | 4131e4549108bc53149a45b24ccc5b3a40b6cf60 (diff) | |
pyside: Modify QAbstractListModel.data(..) to consider enums
- The function under consideration returns a QVariant, which is used
internally within the C++ code. Sometimes, the value stored in this
QVariant can also be a Python enum/Shiboken enum. When such a case
occurs, the returned QVariant to the C++ side is a QVariant of Python
/Shiboken enum, which cannot be processed from C++ code.
- This is a regression from 108d82d2ca5323652a50706b37f829b9f0457367
which needs some special handling.
- The solution is the convert the python enum (Shiboken enum) to the
corresponding integer type, which is stored into the QVariant and
returned to the C++ side.
Pick-to: 6.3
Fixes: PYSIDE-1930
Change-Id: Id4e9a1caa5a318e2410e584502c6dc6e35e3a657
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tools/qtpy2cpp_lib/visitor.py')
0 files changed, 0 insertions, 0 deletions
