aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextcontrol.cpp
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-05-03 13:03:29 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-03 07:04:03 +0200
commitbf817782e6dfeb8455febe3e481bcdb4c383ed05 (patch)
tree7a11212363658422216dfa6d2b1f6a95ce5d7dee /src/quick/items/qquicktextcontrol.cpp
parentccd69247eaa6289bc31115f863ba4737b14fe34e (diff)
Ensure the cursor rectangle is updated when preedit text changes.
Updating only when the cursor position changes isn't enough because changing pre-edit text changes the width of the pre-edit area and the x offset of all cursor positions within it. Change-Id: I3c0a5e4ad4714a903ca84c1a25374491f34d95a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'src/quick/items/qquicktextcontrol.cpp')
-rw-r--r--src/quick/items/qquicktextcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextcontrol.cpp b/src/quick/items/qquicktextcontrol.cpp
index 8bc94b919c..751706dce1 100644
--- a/src/quick/items/qquicktextcontrol.cpp
+++ b/src/quick/items/qquicktextcontrol.cpp
@@ -1479,7 +1479,7 @@ void QQuickTextControlPrivate::inputMethodEvent(QInputMethodEvent *e)
QTextCursorPrivate *cursor_d = QTextCursorPrivate::getPrivate(&cursor);
if (cursor_d)
cursor_d->setX();
- q->updateCursorRectangle(oldPreeditCursor != preeditCursor || forceSelectionChanged);
+ q->updateCursorRectangle(oldPreeditCursor != preeditCursor || forceSelectionChanged || isGettingInput);
selectionChanged(forceSelectionChanged);
}