aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/translation
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-05-18 15:05:32 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-05-19 09:43:14 +0000
commitadcc0f1bd79d66ab2c5f9417c3ad26a258425e02 (patch)
treeb3de20ac656e33104ba73e12c8a442935ea1e138 /tests/auto/translation
parent7027b2040be5c9675e542244dc457f208d903612 (diff)
Listen for the LanguageChange event in event() instead of using filters
Now that the LanguageChange event is sent to all top level windows to pass on down to items then we can drop the event filter and just listen for it in the event() function. Change-Id: I6c9699a798680695ea1d0013266d3a034b74ae7b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 1f4f547a070356dda459a45b9f1c17fd4995d793) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/translation')
-rw-r--r--tests/auto/translation/tst_translation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/translation/tst_translation.cpp b/tests/auto/translation/tst_translation.cpp
index ffb39f96..81eb0b77 100644
--- a/tests/auto/translation/tst_translation.cpp
+++ b/tests/auto/translation/tst_translation.cpp
@@ -88,6 +88,7 @@ void tst_translation::dialogButtonBox()
QTranslator translator;
QVERIFY(translator.load("qtbase_fr.qm", ":/"));
QVERIFY(qApp->installTranslator(&translator));
+ qApp->sendPostedEvents();
view.engine()->retranslate();
QString translatedSaveText = QGuiApplicationPrivate::platformTheme()->standardButtonText(QPlatformDialogHelper::Save);