diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-06-14 21:48:34 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-06-16 11:07:21 +0200 |
| commit | 2a5f0854efdf27ce70ffe569e97d3bcbfcc8e1c8 (patch) | |
| tree | 76ed23b9284a18cdd375d17a55d0197bcf3f84db | |
| parent | cceb7338040ce00c28cc9f1e03d705b4af5aad8f (diff) | |
PySide6: Fix signature of QObject.tr()
Use the newly added pyi-type attribute to specify str
instead of bytes.
Fixes: PYSIDE-1329
Change-Id: Ia2c78715851671056ba1fbaac9bc85e39f9ec4ce
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| -rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index f21c1d382..80be7e755 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -1748,7 +1748,8 @@ </add-function> <add-function signature="tr(const char*,const char*,int)" return-type="QString"> - <modify-argument index="2"> + <modify-argument index="1" pyi-type="str"/> + <modify-argument index="2" pyi-type="str"> <replace-default-expression with="0"/> </modify-argument> <modify-argument index="3"> |
