Fix selection by dragging after double click in QWidgetTextControl.
Remove return in mouseMove depending on variable mousePressed which is not present in Qt 4. The variable was true in Qt versions before 5.3 due to an additional mouse press event received before a double click. Task-number: QTBUG-39023 Task-number: QTBUG-25831 Change-Id: I57ed9284961195c71df9e9b9d697b1cfbad7c228 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
a6855cbf40
commit
c3baa7c1dc
@ -1692,9 +1692,6 @@ void QWidgetTextControlPrivate::mouseMoveEvent(QEvent *e, Qt::MouseButton button
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mousePressed)
|
||||
return;
|
||||
|
||||
const qreal mouseX = qreal(mousePos.x());
|
||||
|
||||
int newCursorPos = q->hitTest(mousePos, Qt::FuzzyHit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user