summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-05-04 11:21:10 (GMT)
committeraxis <qt-info@nokia.com>2009-05-04 13:24:53 (GMT)
commit8e5b6aca31d8558ded261920ec50fc32367e4bb0 (patch)
treee216098e935c7bdaae0e766daca33c2365e20994 /src
parent203b2b2c611e29ee18ee4f546b8695359710fd1b (diff)
downloadQt-8e5b6aca31d8558ded261920ec50fc32367e4bb0.zip
Qt-8e5b6aca31d8558ded261920ec50fc32367e4bb0.tar.gz
Qt-8e5b6aca31d8558ded261920ec50fc32367e4bb0.tar.bz2
Make sure to update input context after switching input method hints.
RevBy: denis
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 64aeab5..ea59589 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -8498,6 +8498,10 @@ void QWidget::setInputMethodHints(Qt::InputMethodHints hints)
{
Q_D(QWidget);
d->imHints = hints;
+ if (testAttribute(Qt::WA_InputMethodEnabled)) {
+ Q_ASSERT(inputContext());
+ inputContext()->update();
+ }
}