aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2022-06-16 14:27:38 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2022-06-16 18:13:19 +0200
commit33ac539deb4c624c370aacf72b8a48e5ce1f7496 (patch)
treedc8e0f981ba7cfa1f496b92b52aa6d92ddaf8924 /sources
parenta258e7fd54a7a379e179597f61bae1c8ed70b0e7 (diff)
signature module: QPixMap.save should use str instead of bytes
- the parameter 'format' of QPixMap.save(...) should have a type mapping of char* -> str instead of char* -> bytes Task-number: PYSIDE-1968 Pick-to: 6.3 Change-Id: I48f3e8da73208388b731b63c41893d917fb65d54 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources')
-rw-r--r--sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py
index e7416e501..d6b54bc01 100644
--- a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py
+++ b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py
@@ -543,6 +543,11 @@ def init_PySide6_QtGui():
"uint8_t": int,
"USHRT_MAX": ushort_max,
})
+
+ # special case - char* can either be 'bytes' or 'str'. The default is 'bytes'.
+ # Here we manually set it to map to 'str'.
+ type_map.update({("PySide6.QtGui.QPixmap.save", "char*"): str})
+
return locals()