summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-04-19 02:01:17 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-04-19 02:39:51 (GMT)
commit708e090aef81c59904c483a2ea46b275ef21c7e4 (patch)
treef465ae7f063e3884e975dfc4f449cc4142aae9b1 /src/gui/widgets
parent81044282befaa5af7247804c7875df83c89c6459 (diff)
downloadQt-708e090aef81c59904c483a2ea46b275ef21c7e4.zip
Qt-708e090aef81c59904c483a2ea46b275ef21c7e4.tar.gz
Qt-708e090aef81c59904c483a2ea46b275ef21c7e4.tar.bz2
Fix excessive scrolling in TextInput with mid string pre-edit text.
Don't emit text or cursor position changed signals until all the state changes from the input method event are made. Otherwise properties like horizontal scroll are updated based on invalid intermediate data. Change-Id: If543dbe58dc571aeda495152d99be95645eea140 Task-number: QTBUG-18789 Reviewed-by: Martin Jones
Diffstat (limited to 'src/gui/widgets')
-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 5a281ad..d03e5de 100644
--- a/src/gui/widgets/qlinecontrol.cpp
+++ b/src/gui/widgets/qlinecontrol.cpp
@@ -435,7 +435,7 @@ void QLineControl::processInputMethodEvent(QInputMethodEvent *event)
removeSelectedText();
}
if (!event->commitString().isEmpty()) {
- insert(event->commitString());
+ internalInsert(event->commitString());
cursorPositionChanged = true;
}