qt6-bb10/src/platformsupport/input
Shawn Rutledge 4e400369c0 Refactor pointer event hierarchy
Some goals that have hopefully been achieved are:
- make QPointerEvent and QEventPoint resemble their Qt Quick
  counterparts to such an extent that we can remove those wrappers
  and go back to delivering the original events in Qt Quick
- make QEventPoint much smaller than QTouchEvent::TouchPoint, with no pimpl
- remove most public setters
- reduce the usage of complex constructors that take many arguments
- don't repeat ourselves: move accessors and storage upwards
  rather than having redundant ones in subclasses
- standardize the set of accessors in QPointerEvent
- maintain source compatibility as much as possible: do not require
  modifying event-handling code in any QWidget subclass

To avoid public setters we now introduce a few QMutable* subclasses.
This is a bit like the Builder pattern except that it doesn't involve
constructing a separate disposable object: the main event type can be
cast to the mutable type at any time to enable modifications, iff the
code is linked with gui-private. Therefore event classes can have
less-"complete" constructors, because internal Qt code can use setters
the same way it could use the ones in QTouchEvent before; and the event
classes don't need many friends. Even some read-accessors can be kept
private unless we are sure we want to expose them.

Task-number: QTBUG-46266
Fixes: QTBUG-72173
Change-Id: I740e4e40165b7bc41223d38b200bbc2b403e07b6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-07-10 14:32:56 +02:00
..
evdevkeyboard Port platformsupport to QStringView 2020-06-15 10:43:51 +02:00
evdevmouse Port platformsupport to QStringView 2020-06-15 10:43:51 +02:00
evdevtablet Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
evdevtouch Refactor pointer event hierarchy 2020-07-10 14:32:56 +02:00
integrityhid Add missing override 2020-05-21 11:34:12 +03:00
libinput Refactor pointer event hierarchy 2020-07-10 14:32:56 +02:00
shared Use QList instead of QVector in platformsupport 2020-07-06 13:43:11 +02:00
tslib tslib plugin: remove debug print on old tslib versions 2019-10-01 10:36:24 +02:00
.prev_CMakeLists.txt Move xkbcommon to QtGui 2020-07-04 20:46:07 +02:00
CMakeLists.txt Move xkbcommon to QtGui 2020-07-04 20:46:07 +02:00
input-support.pro platformsupport/input: add xkbcommon utilities lib 2019-03-01 14:31:28 +00:00
input.pro Move xkbcommon to QtGui 2020-07-04 20:46:07 +02:00