summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod/qwininputcontext_p.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-04-01 08:18:06 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-04-01 13:10:55 (GMT)
commitf3dbe7d3ebac51b32cf7cc227032fa87a087c682 (patch)
treee8515ca209f8d3c1ab6411bb4a8ce143f5c5b995 /src/gui/inputmethod/qwininputcontext_p.h
parent69e20859bc54b1bfd9ec1a71e034d597ab466a03 (diff)
downloadQt-f3dbe7d3ebac51b32cf7cc227032fa87a087c682.zip
Qt-f3dbe7d3ebac51b32cf7cc227032fa87a087c682.tar.gz
Qt-f3dbe7d3ebac51b32cf7cc227032fa87a087c682.tar.bz2
Improved IME handling on Windows.
QWizard sets focus on a widget when switching to a page before the widget becomes visible, which caused problems with our ime handling which didn't enable ime correctly. The fix is to refactor the code to enable ime handling whenever someone tells input context to set focus by calling QInputContext::setFocusWidget instead of relying on FocusIn/Out events and duplicating updateImeStatus calls all over Qt.. Task-number: 244604 Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'src/gui/inputmethod/qwininputcontext_p.h')
-rw-r--r--src/gui/inputmethod/qwininputcontext_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qwininputcontext_p.h b/src/gui/inputmethod/qwininputcontext_p.h
index 38d7e32..c6ad19e 100644
--- a/src/gui/inputmethod/qwininputcontext_p.h
+++ b/src/gui/inputmethod/qwininputcontext_p.h
@@ -83,6 +83,7 @@ public:
static void TranslateMessage(const MSG *msg);
static LRESULT DefWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
+ static void updateImeStatus(QWidget *w, bool hasFocus);
static void enablePopupChild(QWidget *w, bool e);
static void enable(QWidget *w, bool e);