Package: qt4-x11 / 4:4.8.7+dfsg-18

Add_support_for_QT_USE_DRAG_DISTANCE_env_var.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: support reading of default value for startDragDistance property
from QT_USE_DRAG_DISTANCE environment variable.
See also http://bugreports.qt.nokia.com/browse/QTBUG-12594
Author: Joonas Tanskanen <joonas.tanskanen@sasken.com>
---
 src/gui/kernel/qapplication.cpp |    5 +++++
 1 file changed, 5 insertions(+)

--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -1031,6 +1031,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();
 }