summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-05-29 13:12:49 (GMT)
committeraxis <qt-info@nokia.com>2009-06-03 11:16:43 (GMT)
commit6c153af95d45ad58fe4bca60b5494addd3ede821 (patch)
tree3c2512a71737b750adf7ba190ddde804335121c1 /src
parent48e3dc574f24f31d9506e7fcf2ec53e1c9638684 (diff)
downloadQt-6c153af95d45ad58fe4bca60b5494addd3ede821.zip
Qt-6c153af95d45ad58fe4bca60b5494addd3ede821.tar.gz
Qt-6c153af95d45ad58fe4bca60b5494addd3ede821.tar.bz2
Made S60 FEP use the new Qt::ImAnchorPosition API.
Diffstat (limited to 'src')
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index bdc79a8..6faf792 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -651,9 +651,8 @@ void QCoeFepInputContext::GetCursorSelectionForFep(TCursorSelection& aCursorSele
if (!w)
return;
- QVariant cursorVar = w->inputMethodQuery(Qt::ImCursorPosition);
- int cursor = cursorVar.toInt() + m_preeditString.size();
- int anchor = cursor - w->inputMethodQuery(Qt::ImCurrentSelection).toString().size();
+ int cursor = w->inputMethodQuery(Qt::ImCursorPosition).toInt() + m_preeditString.size();
+ int anchor = w->inputMethodQuery(Qt::ImAnchorPosition).toInt() + m_preeditString.size();
aCursorSelection.iAnchorPos = anchor;
aCursorSelection.iCursorPos = cursor;
}