diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-03-31 13:40:34 +0200 |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-04-01 15:10:27 +0200 |
commit | b224b6006e823435297c2f0b82c835f5987f9b10 (patch) | |
tree | 92b364a20fd9b455d968c58ea8a85e81d84cc9d1 /src/gui/inputmethod | |
parent | f6830ef93552005b5dc9fee2d9649f9915842615 (diff) | |
download | qt4-tools-b224b6006e823435297c2f0b82c835f5987f9b10.tar.gz |
Input Method cannot be enabled in License Wizard and Class Wizard
Input methods didn't work properly wor widgets inside QWizardPage
because the widget got focus before it was shown and input context
wasn't initialized properly. The fix is to postpone
qinputcontext->setFocusWidget call until the widget is created (input
context will be initialized in the QWidget::create_sys function).
Task-number: 244604
Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r-- | src/gui/inputmethod/qximinputcontext_x11.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inputmethod/qximinputcontext_x11.cpp b/src/gui/inputmethod/qximinputcontext_x11.cpp index 1c8560f501..c320fb4f24 100644 --- a/src/gui/inputmethod/qximinputcontext_x11.cpp +++ b/src/gui/inputmethod/qximinputcontext_x11.cpp @@ -437,7 +437,8 @@ void QXIMInputContext::create_xim() // reinitialize input context after the input method // server (like SCIM) has been launched without // requiring the user to manually switch focus. - if (focusWidget->testAttribute(Qt::WA_InputMethodEnabled)) + if (focusWidget->testAttribute(Qt::WA_InputMethodEnabled) + && focusWidget->testAttribute(Qt::WA_WState_Created)) setFocusWidget(focusWidget); } // following code fragment is not required for immodule |