aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindow_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-08-15 14:14:07 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-08-23 14:47:35 +0000
commita0cb20c08db13003f7b8adc2f02fdcadf96fb8d1 (patch)
tree8a700b0018a741a3290de9a8d3f71cd6cf956cc0 /src/quick/items/qquickwindow_p.h
parentad96378ba27d5a89cf447d912cdb8ae6cd6c34ec (diff)
add QQuickPointerHandler::wantsPointerEvent
There will be an inheritance hierarchy of pointer handlers. The base class doesn't have enough information to know whether an event should be accepted or rejected, so it cannot change the state of the event, so there's no way for a subclass to benefit from the base class's checking of m_enabled, if it has no way to communicate to the subclasses. An intermediate class has more information which contributes to the decision of whether to accept or reject, but still not enough: the leaf class must make the final decision. So we need a virtual bool function, at least as an implementation detail, even though from the perspective of event delivery, there's only one outcome: the event is accepted, or not. We have eschewed public bool functions to avoid ambiguity during delivery: there is no return value to pay attention to, only the accepted state of the event. Change-Id: Ieaca4968fce0064f80b5460aa4c10b431036e12a Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquickwindow_p.h')
0 files changed, 0 insertions, 0 deletions