From 9899a258acc0cf6be4c5d7c67ececf272c862a02 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Mon, 24 Jan 2022 10:55:59 +0000 Subject: [PATCH] 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 Gbp-Pq: Name Add_support_for_QT_USE_DRAG_DISTANCE_env_var.patch --- 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 22da34e01..5cc57b0f8 100644 --- 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(); } -- 2.30.2