qt6-bb10/tests/auto/gui
Shawn Rutledge 38806273e5 Remove QEventPoint::event() in favor of device()
event()->device() was the most common use case anyway.

The idea that the "parent" of a QEventPoint is the QPointerEvent
interferes with the ability to copy and move event objects: the parent
pointers are dangling unless we use the QPointerEvent subclass
destructors to set the points' parents to null.  Since there is no move
constructor, even returning a QEventPoint from a function by value
results in destroying the temporary instance and copying it to the
caller's space.  So the parent pointer is often useless, unless we do
even more work to maintain it when the event moves.

If we optimize to avoid copying QEventPoints too much (and perhaps
enable exposing _mutable_ points to QML) by storing reusable instances in
QPointingDevice (which is the current plan), then the actual parent will
no longer be the event.  Events are usually stack-allocated, thus
temporary and intended to be movable.

Change-Id: I24b648dcc046fc79d2401c781f1fda6cb00f47b0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-08-24 13:50:55 +02:00
..
image Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
itemmodels Tests: Use QVERIFY instead of QCOMPARE for empty lists 2020-07-10 14:30:58 +02:00
kernel Remove QEventPoint::event() in favor of device() 2020-08-24 13:50:55 +02:00
math3d Deprecate the static int based API in QMetaType 2020-08-24 00:19:05 +02:00
painting Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
qopengl CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qopenglconfig CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qvulkan CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
rhi rhi: sanityCheckGraphicsPipeline handle no vertex attributes 2020-08-18 07:58:50 +02:00
text QFont: Extend the string description to include the missing elements 2020-08-22 22:21:35 +00:00
util Don't capture this explicitly in tests 2020-07-29 18:34:16 +00:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
gui.pro Remove winrt 2020-06-06 20:25:49 +02:00