diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-12-14 23:00:17 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-12-14 23:00:17 (GMT) |
commit | 4a56fbd816dd4d1ec7643735e549bb39c4ace4c6 (patch) | |
tree | d793e257bec741e0eda16384c2e548405498e6ef /src/gui/inputmethod | |
parent | 542fe69cdeff81acb8f986ff4606043613345dc2 (diff) | |
parent | 1d0ddf8037c068ff584dda60cffeb6b2b506d4b2 (diff) | |
download | Qt-4a56fbd816dd4d1ec7643735e549bb39c4ace4c6.zip Qt-4a56fbd816dd4d1ec7643735e549bb39c4ace4c6.tar.gz Qt-4a56fbd816dd4d1ec7643735e549bb39c4ace4c6.tar.bz2 |
Merge branch '4.7-upstream' into 4.7-water
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_s60.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp index 5e8a2e1..d48d63d 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp +++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp @@ -657,6 +657,8 @@ void QCoeFepInputContext::UpdateFepInlineTextL(const TDesC& aNewInlineText, if (!w) return; + commitTemporaryPreeditString(); + m_inlinePosition = aPositionOfInsertionPointInInlineText; QList<QInputMethodEvent::Attribute> attributes; @@ -694,6 +696,12 @@ void QCoeFepInputContext::SetInlineEditingCursorVisibilityL(TBool aCursorVisibil void QCoeFepInputContext::CancelFepInlineEdit() { + // We are not supposed to ever have a tempPreeditString and a real preedit string + // from S60 at the same time, so it should be safe to rely on this test to determine + // whether we should honor S60's request to clear the text or not. + if (m_hasTempPreeditString) + return; + QList<QInputMethodEvent::Attribute> attributes; QInputMethodEvent event(QLatin1String(""), attributes); event.setCommitString(QLatin1String(""), 0, 0); |