From 6f007e1fb71386ec94dc7f7557515ae5968db8d0 Mon Sep 17 00:00:00 2001 From: Geir Vattekar Date: Tue, 1 Mar 2011 15:54:44 +0100 Subject: Doc: Work on QInputContext::reset() docs Task-number: QTBUG-17858 Reviewed-by: axis --- src/gui/inputmethod/qinputcontext.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/inputmethod/qinputcontext.cpp b/src/gui/inputmethod/qinputcontext.cpp index 063aefd..f083e51 100644 --- a/src/gui/inputmethod/qinputcontext.cpp +++ b/src/gui/inputmethod/qinputcontext.cpp @@ -355,9 +355,10 @@ void QInputContext::widgetDestroyed(QWidget *widget) in complex input method. In the case, call QInputContext::reset() to ensure proper termination of inputting. - You must not send any QInputMethodEvent except empty InputMethodEnd event using - QInputContext::reset() at reimplemented reset(). It will break - input state consistency. + In a reimplementation of reset(), you must not send any + QInputMethodEvent containing preedit text. You can only commit + string and attributes; otherwise, you risk breaking input state + consistency. */ -- cgit v0.12