diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-04-21 09:47:31 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-05-03 15:31:28 (GMT) |
commit | fe59ef0bf3c8d0ae92c15cd69839df2232a60936 (patch) | |
tree | a8da9987391a5dd761b75fd9346de25381edead7 /src/gui/kernel/qapplication_win.cpp | |
parent | e4c60e6b8d111c6214d8ee47b8c2bb8b9f8fcfe2 (diff) | |
download | Qt-fe59ef0bf3c8d0ae92c15cd69839df2232a60936.zip Qt-fe59ef0bf3c8d0ae92c15cd69839df2232a60936.tar.gz Qt-fe59ef0bf3c8d0ae92c15cd69839df2232a60936.tar.bz2 |
Propagate LocaleChange event from application to widgets.
The LocaleChange event will be sent to the QApplication object and then
propagated to all widgets down the hierarchy starting with toplevels.
Reviewed-by: Thomas Zander
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index fb2837e..50b9759 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -1936,6 +1936,8 @@ extern "C" LRESULT QT_WIN_CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wPa QLocalePrivate::updateSystemPrivate(); if (!widget->testAttribute(Qt::WA_SetLocale)) widget->dptr()->setLocale_helper(QLocale(), true); + QEvent e(QEvent::LocaleChange); + QApplication::sendEvent(qApp, &e); } } else if (msg.wParam == SPI_SETICONTITLELOGFONT) { |