From a3768cb3bd27213a262518535d2d9edc88754dd9 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 4 Jun 2012 14:18:32 +0300 Subject: Add StartDragVelocity to style hints This will be used by Flickable in combination with the drag distance to improve the drag start detection logic. Change-Id: Ica30042ef3d15041d857b07fa4173dde3d3f900f Reviewed-by: Lars Knoll --- src/gui/kernel/qstylehints.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/kernel/qstylehints.cpp') diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp index a98e5fbd76..53c5a07f6b 100644 --- a/src/gui/kernel/qstylehints.cpp +++ b/src/gui/kernel/qstylehints.cpp @@ -76,6 +76,11 @@ int QStyleHints::startDragTime() const return hint(QPlatformIntegration::StartDragTime).toInt(); } +int QStyleHints::startDragVelocity() const +{ + return hint(QPlatformIntegration::StartDragVelocity).toInt(); +} + int QStyleHints::keyboardInputInterval() const { return hint(QPlatformIntegration::KeyboardInputInterval).toInt(); -- cgit v1.2.3