diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-30 07:51:11 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-30 07:51:11 +0800 |
| commit | 7eac7f7367a926c24461a6185d70b744c764aaa2 (patch) | |
| tree | cfe41b873839f896f8d5e83b35bee77713782267 /client | |
| parent | 825d1bfb60879f3b4c728d485df18d133c24ce58 (diff) | |
| download | ibus-7eac7f7367a926c24461a6185d70b744c764aaa2.tar.gz ibus-7eac7f7367a926c24461a6185d70b744c764aaa2.tar.xz ibus-7eac7f7367a926c24461a6185d70b744c764aaa2.zip | |
Translate im menu.
Diffstat (limited to 'client')
| -rw-r--r-- | client/qt4/ibus-input-context.cpp | 10 | ||||
| -rw-r--r-- | client/qt4/ibus-input-context.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/client/qt4/ibus-input-context.cpp b/client/qt4/ibus-input-context.cpp index d120f1e..1afa426 100644 --- a/client/qt4/ibus-input-context.cpp +++ b/client/qt4/ibus-input-context.cpp @@ -140,6 +140,11 @@ IBusInputContext::setFocusWidget (QWidget *widget) has_focus = true; client->focusIn (this); update (); + QObject::connect ( + widget, + SLOT(setFocus()), + this, + SLOT(setFocus())); } } @@ -252,3 +257,8 @@ IBusInputContext::hidePreedit () updatePreedit (preedit_string, preedit_attrs, preedit_cursor_pos, FALSE); } +void +IBusInputContext::setFocus () +{ + qDebug() << "setFocus"; +} diff --git a/client/qt4/ibus-input-context.h b/client/qt4/ibus-input-context.h index 2fd3e56..f616ce6 100644 --- a/client/qt4/ibus-input-context.h +++ b/client/qt4/ibus-input-context.h @@ -55,6 +55,8 @@ public: void showPreedit (); void hidePreedit (); +private slots: + void setFocus (); private: IBusClient *client; |
