diff options
author | Pierre Rossi <pierre.rossi@nokia.com> | 2010-11-10 14:39:19 (GMT) |
---|---|---|
committer | Pierre Rossi <pierre.rossi@nokia.com> | 2010-11-10 15:16:27 (GMT) |
commit | bcf93f6bcb596c378ae957ccb2b2097fc3de8015 (patch) | |
tree | 119d60fa1ccb6d38e00b8f60f86ed071d02b6616 /src/gui/text/qtextcontrol.cpp | |
parent | f62ac2144ac7f67f045bf5121dfc253eb93a4e41 (diff) | |
download | Qt-bcf93f6bcb596c378ae957ccb2b2097fc3de8015.zip Qt-bcf93f6bcb596c378ae957ccb2b2097fc3de8015.tar.gz Qt-bcf93f6bcb596c378ae957ccb2b2097fc3de8015.tar.bz2 |
Update the text cursor's position for input method events.
Task-number: QTBUG-2064
Reviewed-by: Jiang Jiang
Diffstat (limited to 'src/gui/text/qtextcontrol.cpp')
-rw-r--r-- | src/gui/text/qtextcontrol.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtextcontrol.cpp b/src/gui/text/qtextcontrol.cpp index d0f71ae..334246b 100644 --- a/src/gui/text/qtextcontrol.cpp +++ b/src/gui/text/qtextcontrol.cpp @@ -64,6 +64,7 @@ #include "qgraphicssceneevent.h" #include "qprinter.h" #include "qtextdocumentwriter.h" +#include "private/qtextcursor_p.h" #include <qtextformat.h> #include <qdatetime.h> @@ -1904,6 +1905,8 @@ void QTextControlPrivate::inputMethodEvent(QInputMethodEvent *e) } layout->setAdditionalFormats(overrides); cursor.endEditBlock(); + if (cursor.d) + cursor.d->setX(); } QVariant QTextControl::inputMethodQuery(Qt::InputMethodQuery property) const |