diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-09-12 09:41:38 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-09-19 15:36:47 +0200 |
commit | 5e96f43fe03e16d7ca68f0dd888c4518a98694f2 (patch) | |
tree | 10244cad0e364c9bc18b04a87c8bad810bee493b /tests/auto/qml/qqmlpromise | |
parent | 9274ed77bc273330a3f202a00239dcc1b6ef8cc3 (diff) |
doc: explain more about acceptedModifiers in PointerDeviceHandler
Having neither a list of all possible modifiers nor a link to
Qt::KeyboardModifier was inconvenient. Clarify that bitwise OR
results in logical-AND behavior, while having multiple handlers
results in logical-OR behavior, and that a switch statement in JS
allows you do anything you like with modifiers. Fix the manual test
to test the switch statement and deal with the fact that
point.event.modifiers is undefined: TapHandler can use
eventPoint.modifiers, but any DeviceHandler can use point.modifiers.
Fixes: QTBUG-78234
Change-Id: Iba2a03950aa1279ef454cc76fc8de1b2dab14dfb
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlpromise')
0 files changed, 0 insertions, 0 deletions