diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-18 09:15:52 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-18 09:15:52 +0800 |
| commit | 8b5edb3da30ec604d1de12ea7e2bff47c4b2f6b1 (patch) | |
| tree | 1075710437c8a600a14e45aa56983be70bb71a9a /client | |
| parent | 4d2fd6e6455a5b9d06e7af71d8778b6c08adbcca (diff) | |
| download | ibus-8b5edb3da30ec604d1de12ea7e2bff47c4b2f6b1.tar.gz ibus-8b5edb3da30ec604d1de12ea7e2bff47c4b2f6b1.tar.xz ibus-8b5edb3da30ec604d1de12ea7e2bff47c4b2f6b1.zip | |
Fix focus problem in qt im module.
Diffstat (limited to 'client')
| -rw-r--r-- | client/qt4/ibus-input-context.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/qt4/ibus-input-context.cpp b/client/qt4/ibus-input-context.cpp index 692fecb..44de61d 100644 --- a/client/qt4/ibus-input-context.cpp +++ b/client/qt4/ibus-input-context.cpp @@ -130,9 +130,14 @@ IBusInputContext::isComposing() const void IBusInputContext::setFocusWidget (QWidget *widget) { - // qDebug () << "setFocusWidget (" << widget << ")"; QInputContext::setFocusWidget (widget); - update (); + if (widget == NULL) { + client->focusOut (this); + } + else { + client->focusIn (this); + update (); + } } void |
