diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-09-09 15:59:49 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-09-11 14:02:15 +0200 |
commit | c18c7bd7f9596e5ad3d13876a91203e1ceba2544 (patch) | |
tree | 76eea6eb3c24ae4aab5ac22925b2e71caa46c05c /tests/auto/translation/translation.pro | |
parent | 1fec97053884d998442710a5d4258ffb6bed8955 (diff) |
DialogButtonBox: fix standard buttons not being translated
When calling QQmlEngine::retranslate() after component completion,
buttons in a DialogButtonBox were not being retranslated.
For now the only way to be notified of language change events
is by installing an event filter on the application, but in
the future we can use the solution to QTBUG-78141 instead.
Change-Id: Ibc435c3829945489adcbaa8a813013fe735a9c38
Fixes: QTBUG-75085
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tests/auto/translation/translation.pro')
-rw-r--r-- | tests/auto/translation/translation.pro | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/translation/translation.pro b/tests/auto/translation/translation.pro new file mode 100644 index 00000000..d2d9d6ee --- /dev/null +++ b/tests/auto/translation/translation.pro @@ -0,0 +1,19 @@ +CONFIG += testcase +TARGET = tst_translation +SOURCES += tst_translation.cpp + +macos:CONFIG -= app_bundle + +QT += testlib gui-private quicktemplates2-private + +include (../shared/util.pri) + +TESTDATA = data/* + +OTHER_FILES += \ + data/*.qml + +# We only want to run lrelease, which is why we use EXTRA_TRANSLATIONS. +EXTRA_TRANSLATIONS = qtbase_fr.ts +# Embed the translations in a qrc file. +CONFIG += lrelease embed_translations |