qt5base-lts/tests/auto/widgets/graphicsview
Taras Kachmaryk f0cd18706f QGraphicsView: fix jumping graphic items when dragging out of view
The algorithms for calculating the scene's position within the view
did not compensate for scrollbars showing. The scrollbars should be
ignored when positioning hte scene within the view, as alignment
only cares about the positioning of the scene when the view is
larger than the scene anyway.

Add a test case that verifies that items don't jump up or down when
dragging horizontally, and not left or right when dragging
vertically.

Mark variables in the modified function as const where applicable to
make it easier to follow the code.

Done-with: Volker Hilsheimer <volker.hilsheimer@qt.io>
Fixes: QTBUG-46757
Change-Id: If205637dfe124e0034f68201b23f174d6863084d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-11-26 16:07:15 +02:00
..
qgraphicsanchorlayout Blacklist: tst_QGraphicsAnchorLayout::layoutDirection for Ubuntu 22.04 2022-08-31 00:39:25 +03:00
qgraphicsanchorlayout1 Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qgraphicseffectsource tst_QGraphicsEffectSource: Reset effect repaint count after flushing events 2022-11-08 19:44:59 +01:00
qgraphicsgridlayout Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qgraphicsitem Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qgraphicsitemanimation Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qgraphicslayout Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qgraphicslayoutitem Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qgraphicslinearlayout Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qgraphicsobject Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qgraphicspixmapitem Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qgraphicspolygonitem Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qgraphicsproxywidget Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qgraphicsscene Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qgraphicssceneindex Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qgraphicstransform Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qgraphicsview QGraphicsView: fix jumping graphic items when dragging out of view 2022-11-26 16:07:15 +02:00
qgraphicswidget Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00