summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstylehints.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-06-04 14:18:32 +0300
committerQt by Nokia <qt-info@nokia.com>2012-06-05 09:02:55 +0200
commita3768cb3bd27213a262518535d2d9edc88754dd9 (patch)
treecc8e5fde857cb177e0336d844583ea56c9f179b9 /src/gui/kernel/qstylehints.cpp
parentb7be632d5e777dfdfd7d6a31ba083e3ac653603d (diff)
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 <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/kernel/qstylehints.cpp')
-rw-r--r--src/gui/kernel/qstylehints.cpp5
1 files changed, 5 insertions, 0 deletions
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();