introduce FallbackTapHandler

Authored by mart on Aug 1 2019, 10:35 AM.

Description

introduce FallbackTapHandler

Summary:
This element is intended to be used as "click on empty areas
to dismiss" use case.
a MouseArea or a TapHandler are not enough for this, because Flickables
eat mouse events even tough no dragging would happen
this filters explicitly events of flickables to emit clicks when no drag
happened on them

Test Plan:
have a listview as child of the FallbackTapHandler and delegates with
a mousearea. The handler will emit tapped only when the user taps on an empty area
of the listview, but not on tap of its delegates

Reviewers: Plasma, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: davidedmundson, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D22860

Details

Committed
martAug 1 2019, 11:08 AM
Reviewer
Plasma
Differential Revision
D22860: introduce FallbackTapHandler
Parents
R296:2571616ec547: Fix typo - GridView -> ScrollView
Branches
Unknown
Tags
Unknown