qt5base-lts/tests/manual/widgets/qgraphicsview/rubberband
Thorbjørn Lund Martsum 9cf56b3e09 QGraphicsView - fix rubberband to expand on wheel event
In SHA 51914375b6 the rubberband
selection was fixed, so it followed the scene-point on mousemove.

However wheelEvent could move the view - but avoid update of the
rubberband (that would not be updated until next mouse-move).

This patch fixes that (and generally improves rubberband behavior)
since QGraphicsViewPrivate::mouseMoveEventHandler is called by
replayLastMouseEvent, which is called from various places,
where we need to update the rubberband (e.g scrollContentsBy).

Change-Id: I1b78c27edaaecea797a2319086d7a11d437d2bd3
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2012-12-11 13:37:57 +01:00
..
rubberbandtest.cpp QGraphicsView - fix rubberband to expand on wheel event 2012-12-11 13:37:57 +01:00
rubberbandtest.pro QGraphicsView - fix rubberband to stay right on scroll 2012-12-01 08:28:43 +01:00