qt6-bb10/tests/auto/gui/kernel
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
..
noqteventloop QEventDispatcherWin32: redesign event notifiers activation 2020-07-29 18:34:34 +03:00
qaction Cover more properties in the QAction test 2020-07-17 08:26:56 +02:00
qactiongroup CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qaddpostroutine Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qbackingstore CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qclipboard Windows QPA: Move mime-type related classes to the new interface 2020-07-28 13:20:23 +02:00
qcursor CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qdrag CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qevent CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qfileopenevent CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qguiapplication CMake: Properly handle CONFIG += thread aka Threads::Threads 2020-08-06 19:15:39 +02:00
qguieventdispatcher CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qguieventloop CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qguimetatype Deprecate the static int based API in QMetaType 2020-08-24 00:19:05 +02:00
qguitimer CMake: Properly handle CONFIG += thread aka Threads::Threads 2020-08-06 19:15:39 +02:00
qguivariant Deprecate the static int based API in QMetaType 2020-08-24 00:19:05 +02:00
qhighdpiscaling Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qinputdevice CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qinputmethod CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qkeyevent CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qkeysequence Fix warnings about unused variables and functions in tests 2020-07-26 18:06:46 +02:00
qmouseevent Properly deprecate Qt::MidButton in favor of Qt::MiddleButton 2020-08-22 21:47:36 +02:00
qmouseevent_modal CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qopenglwindow CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qpalette CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qpixelformat CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qrasterwindow CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qscreen CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qshortcut CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qsurfaceformat CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtouchevent Remove QEventPoint::event() in favor of device() 2020-08-24 13:50:55 +02:00
qwindow Change QWindow/QWidget::map(To/From)(Global/Parent) to operate in float 2020-07-14 10:25:47 +02:00
.prev_CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
kernel.pro Begin writing tst_QInputDevice autotest 2020-06-18 08:05:44 +02:00