aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-05-18 15:05:32 +0200
committerAndy Shaw <andy.shaw@qt.io>2020-05-19 11:08:46 +0200
commit1f4f547a070356dda459a45b9f1c17fd4995d793 (patch)
tree3de995fe507d4f2b474c55794b97e14b09900465 /tests/auto
parent4e1e01c4e484337586a7419e28c3625055f88038 (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. Pick-to: 5.15 Change-Id: I6c9699a798680695ea1d0013266d3a034b74ae7b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto')
-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);