qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsview
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
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Update BLACKLIST for tst_qgraphicsview 2022-08-17 01:05:45 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
tst_qgraphicsview_2.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tst_qgraphicsview.cpp QGraphicsView: fix jumping graphic items when dragging out of view 2022-11-26 16:07:15 +02:00
tst_qgraphicsview.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00