summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod/qcoefepinputcontext_p.h
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-05-26 13:26:04 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-05-26 13:26:04 (GMT)
commit1a5efee93dd78d5c4962e69ee1f6d6b99d8b9aab (patch)
treefcc94b66fd75f64cd15f0a6d3c4e04a6eb14886d /src/gui/inputmethod/qcoefepinputcontext_p.h
parent180e6ca43cde0c80dd6e3f9539236ffd259d2bdb (diff)
downloadQt-1a5efee93dd78d5c4962e69ee1f6d6b99d8b9aab.zip
Qt-1a5efee93dd78d5c4962e69ee1f6d6b99d8b9aab.tar.gz
Qt-1a5efee93dd78d5c4962e69ee1f6d6b99d8b9aab.tar.bz2
Predictive text is not committed when writing in a QLineEdit
QCoeFepInputContext is very aggressive committing its preedit string. When AVKON FEP opens any of its subwindows, it steals the focus from editable widget, which causes preedit string to get committed. This makes the input context almost unusable with T9 word prediction. As it is rather difficult to prevent focus loss in these types of use scenarios, replace the committed string with user selected word when suggested word list is closed. Task-number: QTBUG-15031 Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'src/gui/inputmethod/qcoefepinputcontext_p.h')
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_p.h b/src/gui/inputmethod/qcoefepinputcontext_p.h
index 913d198..e929880 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_p.h
+++ b/src/gui/inputmethod/qcoefepinputcontext_p.h
@@ -159,6 +159,7 @@ private:
MFepPointerEventHandlerDuringInlineEdit *m_pointerHandler;
QBasicTimer m_tempPreeditStringTimeout;
bool m_hasTempPreeditString;
+ QString m_cachedPreeditString;
int m_splitViewResizeBy;
Qt::WindowStates m_splitViewPreviousWindowStates;