diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-07-04 20:05:00 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-09-19 15:37:11 +0200 |
commit | ab5df626bef9365089ce716ce476bccae1d0a04b (patch) | |
tree | 7ca558d24ad391b2cdfbe468a3752270eabd0466 /tools/qmlcachegen | |
parent | 227be82e4cf4b0fc58d4d50154cee7c45eb03777 (diff) |
Add dragThreshold property to Event Handlers
We need drag threshold to be adjustable on each handler instance instead
of relying only on the system default drag threshold. For example in
some use cases DragHandler needs to work with a threshold of 0 or 1 to
start dragging as soon as the point is pressed or as soon as the point
is moved, with no "jump", to enable fine adjustment of a value on some
control such as a Slider.
This involves moving the dragOverThreshold() functions that handlers are
using from QQuickWindowPrivate to QQuickPointerHandlerPrivate, so that
they can use the adjustable threshold value.
Task-number: QTBUG-68075
Change-Id: Ie720cbbf9f30abb40d1731d92f8e7f1e6534eeb5
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tools/qmlcachegen')
0 files changed, 0 insertions, 0 deletions