To be called when input context is expected to commit what it had as
preedit, and resetting its state. Earlier this was done with ::reset()
when in fact documentation somewhat disallowed doing so.
Change-Id: I10ad0620aa42fce6d01a69265af8a4f5f9f4d397
Reviewed-on: http://codereview.qt-project.org/4401
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Vesa Rantanen <vesa.rantanen@nokia.com>
ic->reset();
}
+void QInputPanel::commit()
+{
+ QPlatformInputContext *ic = QGuiApplicationPrivate::platformIntegration()->inputContext();
+ if (ic)
+ ic->commit();
+}
+
void QInputPanel::invokeAction(Action a, int cursorPosition)
{
QPlatformInputContext *ic = QGuiApplicationPrivate::platformIntegration()->inputContext();
void update(Qt::InputMethodQueries queries);
void reset();
+ void commit();
void invokeAction(Action a, int cursorPosition);
{
}
+void QPlatformInputContext::commit()
+{
+}
+
void QPlatformInputContext::update(Qt::InputMethodQueries)
{
}
virtual ~QPlatformInputContext();
virtual void reset();
+ virtual void commit();
virtual void update(Qt::InputMethodQueries);
virtual void invokeAction(QInputPanel::Action, int cursorPosition);