diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-05-08 15:50:28 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-05-10 10:11:56 +0200 |
commit | 2176967547d1ea64aeeb396cd5bd25af301cf4a0 (patch) | |
tree | 74166d7eefed809c8428e37aefa17cf1feeeb667 | |
parent | 2c9037e72d5d2f9f5c9726d198d93791f4c487ce (diff) |
Fix type hint of QTranslator.translate()
The function takes strings like the other translate() functions.
Pick-to: 6.7 6.5
Fixes: PYSIDE-2748
Change-Id: I331ba045276192c6f83ddae3f1a24459a9570bfa
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
-rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index 0a08928f5..9b306c088 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -2552,6 +2552,11 @@ </modify-argument> <inject-code file="../glue/qtcore.cpp" snippet="qtranslator-load"/> </modify-function> + <modify-function signature="translate(const char*,const char*, const char*,int)const"> + <modify-argument index="1" pyi-type="str"/> + <modify-argument index="2" pyi-type="str"/> + <modify-argument index="3" pyi-type="Optional[str]"/> + </modify-function> </object-type> <object-type name="QWaitCondition"> <configuration condition="QT_CONFIG(thread)"/> |