Use new QInputPanel update function in QTextControl

Change-Id: I20f4aa4e469b507ddb40381e922dcf23f6a469b8
Reviewed-on: http://codereview.qt-project.org/4436
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
bb10
Joona Petrell 2011-09-08 12:06:19 +03:00 committed by Lars Knoll
parent 9abb38f5a6
commit 49bb37e05d
1 changed files with 3 additions and 7 deletions

View File

@ -52,6 +52,7 @@
#include <qdrag.h>
#include <qclipboard.h>
#include <qtimer.h>
#include <qinputpanel.h>
#include "private/qtextdocumentlayout_p.h"
#include "private/qabstracttextdocumentlayout_p.h"
#include "qtextdocument.h"
@ -1592,13 +1593,8 @@ void QTextControlPrivate::mouseMoveEvent(QEvent *e, Qt::MouseButton button, cons
if (cursor.position() != oldCursorPos)
emit q->cursorPositionChanged();
_q_updateCurrentCharFormatAndSelection();
#if 0 // ### ndef QT_NO_IM
if (contextObject) {
if (QInputContext *ic = inputContext()) {
ic->update();
}
}
#endif //QT_NO_IM
if (qGuiApp)
qGuiApp->inputPanel()->update(Qt::ImQueryAll);
} else {
//emit q->visibilityRequest(QRectF(mousePos, QSizeF(1, 1)));
if (cursor.position() != oldCursorPos) {