qt5base-lts/tests/auto/widgets
Shawn Rutledge 0a64a044b6 Add a QHoverEvent ctor taking global mouse position; deprecate the other
The QSinglePointEvent ctor assumes that the given globalPos is correct,
so it was wrong that the QHoverEvent ctor passed along a local position
as global. It's better to require globalPos as an argument; and in fact
it seems that everywhere we construct a QHoverEvent, global position is
available, or possible to get by transformation (which is better than
resorting to QCursor::pos()).

Also, don't convert to QPoint: pointer events have qreal resolution and
there's no reason to truncate them.

Fixes: QTBUG-100324
Change-Id: I919455da36265988d3d149eb97563c9ed0d2c660
Pick-to: 6.3
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-02-03 10:18:43 +01:00
..
dialogs Remove unused .qrc files 2022-01-17 23:17:01 +01:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview Remove unused .qrc files 2022-01-17 23:17:01 +01:00
itemviews Add a QHoverEvent ctor taking global mouse position; deprecate the other 2022-02-03 10:18:43 +01:00
kernel Further improve QShortcut test 2022-01-18 22:42:44 +01:00
styles Stylesheet: Fix tab layout when tab has a font and icons 2022-02-02 07:10:12 +01:00
util tests: port to new QMutableEventPoint static API 2022-01-15 12:29:27 +01:00
widgets Add a QHoverEvent ctor taking global mouse position; deprecate the other 2022-02-03 10:18:43 +01:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00