diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-09-27 13:45:29 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-05 14:27:18 +0200 |
commit | e1a2fd9524578f4f4e27eb92a8646f7d53a4c1b8 (patch) | |
tree | 98a5f46204d4b555a6cb16a6374fecc7bbe94c5a /examples/widgets | |
parent | a097b2b1dbf8901ab26a80c9619f679c689677a8 (diff) |
shiboken6: Fix indirections of enums/flag arguments
The information about how arguments are converted (pointer
indirections, etc.) was in
CppGenerator::writePythonToCppTypeConversion() and partially
duplicated in AbstractMetaType::shouldDereferenceArgument(), leading
to discrepancies in the indirections generated for the function calls.
To fix this, introduce a struct GeneratorArgument with type,
conversion mode, indirections and a few flags storing this information
and use that everywhere, replacing
AbstractMetaType::shouldDereferenceArgument().
Pass the argument indirections obtained from
writePythonToCppTypeConversion() via writeArgumentConversion() as a
list into writeMethodCall().
Add a test for passing enums by pointer.
Fixes: PYSIDE-2065
Change-Id: I495c2bc04ebc0162648d74b75e321609ecd00963
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/widgets')
0 files changed, 0 insertions, 0 deletions