summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-08-04 00:58:26 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-08-04 01:09:02 (GMT)
commitf9eac4edbd06adef7569ca99043da57129c96812 (patch)
tree441f4b011caef22b643a70fa5c85bad48e8d0409 /src
parentf9e7aee2019d321edd655bfde7de43f20a106971 (diff)
downloadQt-f9eac4edbd06adef7569ca99043da57129c96812.zip
Qt-f9eac4edbd06adef7569ca99043da57129c96812.tar.gz
Qt-f9eac4edbd06adef7569ca99043da57129c96812.tar.bz2
Move cursorDelegate with the mouse selection of read only text input.
Change-Id: Iae4b2f9f6c9a7da7ec0e194b2568fb3a6da8ea71 Task-number: QTBUG-19109 Reviewed-by: Martin Jones
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qtextcontrol.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/text/qtextcontrol.cpp b/src/gui/text/qtextcontrol.cpp
index 84b620f..9081ab7 100644
--- a/src/gui/text/qtextcontrol.cpp
+++ b/src/gui/text/qtextcontrol.cpp
@@ -1664,8 +1664,10 @@ void QTextControlPrivate::mouseMoveEvent(QEvent *e, Qt::MouseButton button, cons
#endif //QT_NO_IM
} else {
//emit q->visibilityRequest(QRectF(mousePos, QSizeF(1, 1)));
- if (cursor.position() != oldCursorPos)
+ if (cursor.position() != oldCursorPos) {
emit q->cursorPositionChanged();
+ emit q->microFocusChanged();
+ }
}
selectionChanged(true);
repaintOldAndNewSelection(oldSelection);
@@ -1709,8 +1711,10 @@ void QTextControlPrivate::mouseReleaseEvent(QEvent *e, Qt::MouseButton button, c
repaintOldAndNewSelection(oldSelection);
- if (cursor.position() != oldCursorPos)
+ if (cursor.position() != oldCursorPos) {
emit q->cursorPositionChanged();
+ emit q->microFocusChanged();
+ }
if (interactionFlags & Qt::LinksAccessibleByMouse) {
if (!(button & Qt::LeftButton))