diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-04-27 23:25:57 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-29 14:05:39 +0200 |
commit | 03da3d7f5c2fba60873bde5e69ecb047896a8bab (patch) | |
tree | da8d53700e129402ce646f83b7ef5ff556a13ae6 /src/gui/kernel/qinputmethod_p.h | |
parent | 6e8d306ca76afa3c4c2ea1f33a6c6459ddbffaf6 (diff) |
Get rid of most warnings related to QInputMethod
Change-Id: Id0b1235a5dc209c5c06e0a64613364c89e733005
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
Diffstat (limited to 'src/gui/kernel/qinputmethod_p.h')
-rw-r--r-- | src/gui/kernel/qinputmethod_p.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/kernel/qinputmethod_p.h b/src/gui/kernel/qinputmethod_p.h index 34a0430f10..1e55b00318 100644 --- a/src/gui/kernel/qinputmethod_p.h +++ b/src/gui/kernel/qinputmethod_p.h @@ -69,6 +69,17 @@ public: { return inputMethod->d_func(); } + inline void setInputItem(QObject *item) + { + Q_Q(QInputMethod); + + if (inputItem.data() == item) + return; + + inputItem = item; + emit q->inputItemChanged(); + } + void q_connectFocusObject(); void q_checkFocusObject(QObject *object); bool objectAcceptsInputMethod(QObject *object); |