D22860: introduce FallbackTapHandler

Marco Martin noreply at phabricator.kde.org
Wed Jul 31 17:25:18 BST 2019


mart created this revision.
mart added a reviewer: Plasma.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
mart requested review of this revision.

REVISION 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

REPOSITORY
  R296 KDeclarative

BRANCH
  phab/fallbacktaphandler

REVISION DETAIL
  https://phabricator.kde.org/D22860

AFFECTED FILES
  src/qmlcontrols/kquickcontrolsaddons/CMakeLists.txt
  src/qmlcontrols/kquickcontrolsaddons/fallbacktaphandler.cpp
  src/qmlcontrols/kquickcontrolsaddons/fallbacktaphandler.h
  src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin.cpp

To: mart, #plasma
Cc: kde-frameworks-devel, LeGast00n, sbergeron, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190731/fe490f14/attachment.html>


More information about the Kde-frameworks-devel mailing list