diff options
| author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-10 14:21:52 +0100 |
|---|---|---|
| committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-22 14:18:09 +0100 |
| commit | d99b0cfed21e05f6e84b97fe8edb68271a34deb2 (patch) | |
| tree | b2017f824b85fb9abe5ecff9d875a92c67612217 /src/plugins/sqldrivers/mysql/qsql_mysql.cpp | |
| parent | cde7d5d3ff56fdf219771c65bf93f3f08757f154 (diff) | |
Increase precision for QGraphicsView::AnchorUnderMouse
* Use a more precise view center for views with odd width/height
* Use the QPointF version of mapToScene to avoid rounding
* Round instead of truncate when setting scroll bar values
These changes increase the precision of AnchorUnderMouse, which is
important when for example wheel scrolling is used to change the scale
of the view. Without these changes, the view shifts slightly with each
change in the transform.
[ChangeLog][QtWidgets][QGraphicsView] Increase precision for QGraphicsView::AnchorUnderMouse and QGraphicsView::centerOn
Pick-to: 6.6 6.7
Task-number: QTBUG-96879
Change-Id: I8199196c671e4aa96732f382e8057468f676b8d7
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
