Move cursorDelegate with the mouse selection of read only text input.
Task-number: QTBUG-19109 Reviewed-by: Martin Jones Change-Id: I709427fe73b2d6ed9e3526af140b9dc375740789 Reviewed-on: http://codereview.qt.nokia.com/4164 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
This commit is contained in:
parent
c8baa5602a
commit
8febd56940
@ -1674,8 +1674,10 @@ void QTextControlPrivate::mouseMoveEvent(QEvent *e, Qt::MouseButton button, cons
|
|||||||
#endif //QT_NO_IM
|
#endif //QT_NO_IM
|
||||||
} else {
|
} else {
|
||||||
//emit q->visibilityRequest(QRectF(mousePos, QSizeF(1, 1)));
|
//emit q->visibilityRequest(QRectF(mousePos, QSizeF(1, 1)));
|
||||||
if (cursor.position() != oldCursorPos)
|
if (cursor.position() != oldCursorPos) {
|
||||||
emit q->cursorPositionChanged();
|
emit q->cursorPositionChanged();
|
||||||
|
emit q->microFocusChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
selectionChanged(true);
|
selectionChanged(true);
|
||||||
repaintOldAndNewSelection(oldSelection);
|
repaintOldAndNewSelection(oldSelection);
|
||||||
@ -1719,8 +1721,10 @@ void QTextControlPrivate::mouseReleaseEvent(QEvent *e, Qt::MouseButton button, c
|
|||||||
|
|
||||||
repaintOldAndNewSelection(oldSelection);
|
repaintOldAndNewSelection(oldSelection);
|
||||||
|
|
||||||
if (cursor.position() != oldCursorPos)
|
if (cursor.position() != oldCursorPos) {
|
||||||
emit q->cursorPositionChanged();
|
emit q->cursorPositionChanged();
|
||||||
|
emit q->microFocusChanged();
|
||||||
|
}
|
||||||
|
|
||||||
if (interactionFlags & Qt::LinksAccessibleByMouse) {
|
if (interactionFlags & Qt::LinksAccessibleByMouse) {
|
||||||
if (!(button & Qt::LeftButton))
|
if (!(button & Qt::LeftButton))
|
||||||
|
Loading…
Reference in New Issue
Block a user