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 <qt_sanity_bot@ovi.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
bb10
Lars Knoll 2011-09-28 23:06:00 +02:00 committed by Qt by Nokia
parent 1cc70b92c8
commit db3418c10b
1 changed files with 2 additions and 1 deletions

View File

@ -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