summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qinputmethod_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qinputmethod_p.h')
-rw-r--r--src/gui/kernel/qinputmethod_p.h11
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);