aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickdraghandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-09-22 15:22:15 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-10-17 19:46:33 +0000
commit12a3eff085bc7eb30a5283e32009d2899b464278 (patch)
tree85eee36d058ef5b63da1a8fbe406aca22daed2b5 /src/quick/handlers/qquickdraghandler.cpp
parent68a0023bd5330ff57961240aecdd26e30a62d338 (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.cpp1
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;