summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlinecontrol.cpp
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2010-08-27 08:31:39 (GMT)
committeraxis <qt-info@nokia.com>2010-09-01 12:58:22 (GMT)
commitc5901037f0d3ccd45b0c79b38ef5b04552dad0aa (patch)
tree842c6b73755ffef959c9dbf0847a61aa83f71cf4 /src/gui/widgets/qlinecontrol.cpp
parent51f8b65b585a198a62daa4403374441b667966ce (diff)
downloadQt-c5901037f0d3ccd45b0c79b38ef5b04552dad0aa.zip
Qt-c5901037f0d3ccd45b0c79b38ef5b04552dad0aa.tar.gz
Qt-c5901037f0d3ccd45b0c79b38ef5b04552dad0aa.tar.bz2
Revert "Long-press shortcuts for symbols on QWERTY keyboard don't work"
This reverts commit 05eacd9ad40f8adb5aaa12a8b90113a73b43f642. Conflicts: src/gui/inputmethod/qcoefepinputcontext_p.h src/gui/inputmethod/qcoefepinputcontext_s60.cpp
Diffstat (limited to 'src/gui/widgets/qlinecontrol.cpp')
-rw-r--r--src/gui/widgets/qlinecontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlinecontrol.cpp b/src/gui/widgets/qlinecontrol.cpp
index d027b91..b6dfd13 100644
--- a/src/gui/widgets/qlinecontrol.cpp
+++ b/src/gui/widgets/qlinecontrol.cpp
@@ -419,7 +419,7 @@ void QLineControl::processInputMethodEvent(QInputMethodEvent *event)
int c = m_cursor; // cursor position after insertion of commit string
- if (event->replacementStart() == 0)
+ if (event->replacementStart() <= 0)
c += event->commitString().length() + qMin(-event->replacementStart(), event->replacementLength());
m_cursor += event->replacementStart();