ALT Linux repos
S: | 4.8.7-alt25 |
5.0: | 4.5.2-alt1.M50.1 |
4.1: | 4.4.3-alt1.M41.1 |
4.0: | 4.3.4-alt5.M40.1 |
3.0: | 4.0.1-alt1 |
+updates: | 4.0.1-alt2 |
+backports: | 4.2.3-alt7.1.M30 |
Group :: System/Libraries
RPM: qt4
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: Add_support_for_QT_USE_DRAG_DISTANCE_env_var.patch
Download
Download
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();
}