diff options
author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2023-01-11 17:22:55 +0100 |
---|---|---|
committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2023-01-16 11:55:16 +0100 |
commit | 1ee8f6d59d31936c20b123d74920fe6866d27a41 (patch) | |
tree | 2998002a36c2d00f0491714f22db79c8425eb67b /sources/pyside6/PySide6/QtBluetooth | |
parent | 60e9009f670fbefbfe55602c54bbae739ffa3d3c (diff) |
QtBluetooth - Fix toUInt16() and toUInt32()
- The argument 'ok' for both the functions in Python is removed
- Instead, we create the passed argument 'ok' in CPython wrapper
- The modified value of 'ok' and the original result are now returned
as PyTuple
Pick-to: 6.4
Task-number: PYSIDE-2194
Change-Id: If947129f90dda9aedb392a1cbb3822fa04c87415
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/QtBluetooth')
-rw-r--r-- | sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml b/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml index ada93b7f7..2905f6fb5 100644 --- a/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml +++ b/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml @@ -58,6 +58,28 @@ <enum-type name="DescriptorType"/> <enum-type name="ProtocolUuid"/> <enum-type name="ServiceClassUuid"/> + <modify-function signature="toUInt16(bool*)const"> + <modify-argument index="1"> + <remove-argument/> + </modify-argument> + <modify-argument index="return"> + <replace-type modified-type="PyTuple"/> + </modify-argument> + <inject-code class="target" position="beginning"> + <insert-template name="fix_bool*"/> + </inject-code> + </modify-function> + <modify-function signature="toUInt32(bool*)const"> + <modify-argument index="1"> + <remove-argument/> + </modify-argument> + <modify-argument index="return"> + <replace-type modified-type="PyTuple"/> + </modify-argument> + <inject-code class="target" position="beginning"> + <insert-template name="fix_bool*"/> + </inject-code> + </modify-function> </value-type> <value-type name="QLowEnergyAdvertisingData"> <enum-type name="Discoverability"/> |