Search
SailfishOS Open Build Service
>
Projects
>
home:kaltsi
:
tnhlbug
>
qt
> 0010-BMC-15323-add-support-for-QT_USE_DRAG_DISTANCE-envir.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0010-BMC-15323-add-support-for-QT_USE_DRAG_DISTANCE-envir.patch of Package qt
From 5f64b9022113f844e2272b1941f4a32e950db600 Mon Sep 17 00:00:00 2001 From: Robin Burchell <robin.burchell@collabora.com> Date: Sun, 13 Nov 2011 12:41:55 +0100 Subject: [PATCH 10/29] BMC#15323: add support for QT_USE_DRAG_DISTANCE environment variable. This allows customising of the drag distance based on an environment variable. --- src/gui/kernel/qapplication.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 0a08a35..9b2b29f 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -1028,6 +1028,11 @@ void QApplicationPrivate::initialize() q->setAttribute(Qt::AA_S60DisablePartialScreenInputMode); #endif + if(qgetenv("QT_USE_DRAG_DISTANCE").toInt() > 0) { + int dragThreshold = qgetenv("QT_USE_DRAG_DISTANCE").toInt(); + q->setStartDragDistance(dragThreshold); + } + if (qt_is_gui_used) initializeMultitouch(); } -- 1.7.10.3