diff options
author | axis <qt-info@nokia.com> | 2009-06-03 15:19:02 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-06-03 15:21:03 (GMT) |
commit | 3893a10158e3ef5bec79c55ad89666cdc4ad14f5 (patch) | |
tree | 191d426945ad5026c0ceebe01d588e037012edb0 /src/gui/text | |
parent | ad0f42aa8f07b453e9ccfb960f24f40f4f00280d (diff) | |
download | Qt-3893a10158e3ef5bec79c55ad89666cdc4ad14f5.zip Qt-3893a10158e3ef5bec79c55ad89666cdc4ad14f5.tar.gz Qt-3893a10158e3ef5bec79c55ad89666cdc4ad14f5.tar.bz2 |
Fixed an update bug in QTextControl.
Previously, the input context would not get updated on every
selection update.
Diffstat (limited to 'src/gui/text')
-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 482d50b..6647558 100644 --- a/src/gui/text/qtextcontrol.cpp +++ b/src/gui/text/qtextcontrol.cpp @@ -1611,6 +1611,9 @@ void QTextControlPrivate::mouseMoveEvent(Qt::MouseButtons buttons, const QPointF if (cursor.position() != oldCursorPos) emit q->cursorPositionChanged(); _q_updateCurrentCharFormatAndSelection(); + if (QInputContext *ic = inputContext()) { + ic->update(); + } } else { //emit q->visibilityRequest(QRectF(mousePos, QSizeF(1, 1))); if (cursor.position() != oldCursorPos) |