From 9697e2af142a2c7751cdda5c5807c9fe74dee994 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Mon, 5 Dec 2011 17:03:18 +0200 Subject: Make editors commit preedit themselves on losing focus Change-Id: I1d42a8804068718c7347b4f652289f9724c25a3c Reviewed-by: Joona Petrell --- src/quick/items/qquickcanvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quick/items/qquickcanvas.cpp') diff --git a/src/quick/items/qquickcanvas.cpp b/src/quick/items/qquickcanvas.cpp index 0f281a3d1f..5fd8f93d84 100644 --- a/src/quick/items/qquickcanvas.cpp +++ b/src/quick/items/qquickcanvas.cpp @@ -383,7 +383,7 @@ void QQuickCanvasPrivate::setFocusInScope(QQuickItem *scope, QQuickItem *item, F if (oldActiveFocusItem) { #ifndef QT_NO_IM - qApp->inputPanel()->commit(); + qApp->inputPanel()->reset(); #endif activeFocusItem = 0; @@ -492,7 +492,7 @@ void QQuickCanvasPrivate::clearFocusInScope(QQuickItem *scope, QQuickItem *item, Q_ASSERT(oldActiveFocusItem); #ifndef QT_NO_IM - qApp->inputPanel()->commit(); + qApp->inputPanel()->reset(); #endif activeFocusItem = 0; -- cgit v1.2.3