f0cd18706f
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> |
||
---|---|---|
.. | ||
qgraphicsanchorlayout | ||
qgraphicsanchorlayout1 | ||
qgraphicseffectsource | ||
qgraphicsgridlayout | ||
qgraphicsitem | ||
qgraphicsitemanimation | ||
qgraphicslayout | ||
qgraphicslayoutitem | ||
qgraphicslinearlayout | ||
qgraphicsobject | ||
qgraphicspixmapitem | ||
qgraphicspolygonitem | ||
qgraphicsproxywidget | ||
qgraphicsscene | ||
qgraphicssceneindex | ||
qgraphicstransform | ||
qgraphicsview | ||
qgraphicswidget | ||
CMakeLists.txt |