qt6-bb10/tests/auto/gui/kernel
Shawn Rutledge 0e5bbf3507 Make QEvent::setAccepted() virtual; set QEventPoints state the same
In Qt Quick, when we deliver an item-specific QTouchEvent that contains
only the subset of eventpoints that are inside the Item's bounds,
traditionally the Item can accept the event to tell the delivery logic
that the event is handled and doesn't need to be delivered further.
But an Item cannot be expected to have total scene awareness; so now,
the delivery is "done" only when all eventpoints in the original event
are accepted.  This behavior has been working well enough already due to
logic in QQuickWindow that iterates the points and accepts them if the
event is accepted; but it seems appropriate to move this enforcement
into QPointerEvent itself.  Making setAccepted() virtual gives us a
useful degree of freedom.

Event-handling code should alternatively use QEventPoint:setAccepted()
or QPointerEvent::setExclusiveGrabber() to take resonsibility for only
a subset of the touchpoints.

Another way to put it is that we treat QPointerEvent::setAccepted() as a
convenience method: accepting the QEventPoints is what counts (at least
in Qt Quick).

Change-Id: Icec42dc980f407bb5116f5c0852c051a4521105a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-10-22 04:54:17 +00:00
..
noqteventloop CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qaction CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qactiongroup CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qaddpostroutine CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qbackingstore CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qclipboard Rename the new platform APIs from QPlatformInterface to QNativeInterface 2020-10-07 13:03:27 +02:00
qcursor CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qdrag CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qevent CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qfileopenevent CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguiapplication CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguieventdispatcher CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguieventloop CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguimetatype CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguitimer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qguivariant Fix compiler warnings from QKeyCombination 2020-09-28 17:23:20 +02:00
qhighdpi Merge existing tst_qhighdpiscaling into tst_qhgihdpi 2020-10-20 07:27:04 +02:00
qhighdpiscaling Merge existing tst_qhighdpiscaling into tst_qhgihdpi 2020-10-20 07:27:04 +02:00
qinputdevice CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qinputmethod CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qkeyevent CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qkeysequence Fix compile warnings from ignored return value 2020-10-17 08:21:52 +02:00
qmouseevent QEvent copy constructor: copy the type flags too 2020-10-21 08:22:36 +02:00
qmouseevent_modal CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qopenglwindow CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpalette CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpixelformat CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qrasterwindow CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qscreen CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qshortcut CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsurfaceformat CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtouchevent Make QEvent::setAccepted() virtual; set QEventPoints state the same 2020-10-22 04:54:17 +00:00
qwindow [Android] Make sure expose events are emitted after window resize 2020-10-21 07:08:54 +00:00
.prev_CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
CMakeLists.txt Merge existing tst_qhighdpiscaling into tst_qhgihdpi 2020-10-20 07:27:04 +02:00
kernel.pro Merge existing tst_qhighdpiscaling into tst_qhgihdpi 2020-10-20 07:27:04 +02:00