QGraphicsView - remove reference to avoid weird code.
Even though the code before theoretic is ok, we really shouldn't have a reference since mapFromScene returns a QPointF and not a const QPointF&. Change-Id: I5ea8fd238bdbdd21fb1e3b6b5f280d45e3bc43ef Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
b8d0bde59c
commit
7a7d9628f3
@ -3238,7 +3238,7 @@ void QGraphicsView::mouseMoveEvent(QMouseEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update rubberband position
|
// Update rubberband position
|
||||||
const QPoint &mp = mapFromScene(d->mousePressScenePoint);
|
const QPoint mp = mapFromScene(d->mousePressScenePoint);
|
||||||
QPoint ep = event->pos();
|
QPoint ep = event->pos();
|
||||||
d->rubberBandRect = QRect(qMin(mp.x(), ep.x()), qMin(mp.y(), ep.y()),
|
d->rubberBandRect = QRect(qMin(mp.x(), ep.x()), qMin(mp.y(), ep.y()),
|
||||||
qAbs(mp.x() - ep.x()) + 1, qAbs(mp.y() - ep.y()) + 1);
|
qAbs(mp.x() - ep.x()) + 1, qAbs(mp.y() - ep.y()) + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user