qtdeclarative/tests/auto/qml/qqmlengine
Fabian Kosmale 59567e25f6 QQmlEngine: Introduce markCurrentFunctionAsTranslationBinding
The general recommendation to handle language changes in QML is to
handle the LanguageChange event. However, if one is willing to tie
themselves to the QQmlEngine, we can offer a way to ensure that calling
a function will result in a traslation binding.

This might also be helpful for anyone implementing a translation system
different from Qt's, e.g. KDE's i18n.

Fixes: QTBUG-102393
Change-Id: Id4d7a401e0be9d65e1769c8471b26689f44bf66a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-04-24 22:22:13 +02:00
..
data QQmlEngine: Introduce markCurrentFunctionAsTranslationBinding 2023-04-24 22:22:13 +02:00
CMakeLists.txt CMake: Allow omitting the version of QML modules 2023-01-27 19:16:39 +01:00
declarativelyregistered.cpp QQmlEngine: Add module + type based singletonInstance overload 2022-12-08 15:48:34 +01:00
declarativelyregistered.h QQmlEngine: Add module + type based singletonInstance overload 2022-12-08 15:48:34 +01:00
tst_qqmlengine.cpp QQmlEngine: Introduce markCurrentFunctionAsTranslationBinding 2023-04-24 22:22:13 +02:00