diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-09-22 15:22:15 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-10-17 19:46:33 +0000 |
commit | 12a3eff085bc7eb30a5283e32009d2899b464278 (patch) | |
tree | 85eee36d058ef5b63da1a8fbe406aca22daed2b5 /src/quick/handlers/qquickdraghandler.cpp | |
parent | 68a0023bd5330ff57961240aecdd26e30a62d338 (diff) |
DragHandler: grab when dragging over the threshold
Change-Id: I529987797a3fdce967cdac21f29d3a067e0cbd4b
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/quick/handlers/qquickdraghandler.cpp')
-rw-r--r-- | src/quick/handlers/qquickdraghandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickdraghandler.cpp b/src/quick/handlers/qquickdraghandler.cpp index e812b76399..0b77bb46c6 100644 --- a/src/quick/handlers/qquickdraghandler.cpp +++ b/src/quick/handlers/qquickdraghandler.cpp @@ -90,6 +90,7 @@ void QQuickDragHandler::handleEventPoint(QQuickEventPoint *point) } else if ((m_xAxis.enabled() && QQuickWindowPrivate::dragOverThreshold(delta.x(), Qt::XAxis, point)) || (m_yAxis.enabled() && QQuickWindowPrivate::dragOverThreshold(delta.y(), Qt::YAxis, point))) { m_dragging = true; + setGrab(point, true); emit draggingChanged(); } } break; |