From db3418c10b7831db0e6c567ccf49c34698cad1ab Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 28 Sep 2011 23:06:00 +0200 Subject: [PATCH] Fix the qtranslator autotest Properly propagate the language change event to all widgets. Change-Id: I6650205abe1acc6979e28ca5c5dde5ae33a406b9 Reviewed-on: http://codereview.qt-project.org/5758 Reviewed-by: Qt Sanity Bot Reviewed-by: Bradley T. Hughes --- src/widgets/kernel/qapplication.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index 1f4016b..74336be 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -2302,7 +2302,6 @@ bool QApplication::event(QEvent *e) d->toolTipFallAsleep.stop(); } } - return QApplicationBase::event(e); if(e->type() == QEvent::LanguageChange) { #if defined(QT_MAC_USE_COCOA) @@ -2316,7 +2315,9 @@ bool QApplication::event(QEvent *e) } } + return QApplicationBase::event(e); } + #if !defined(Q_WS_X11) // The doc and X implementation of this function is in qapplication_x11.cpp -- 2.7.4