diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-02-24 16:53:07 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-03-04 12:07:07 (GMT) |
commit | 8327f68945134b8057b0ade7d19897e226d3a7b5 (patch) | |
tree | 578a49d3fa62d4e8fa3455b764757cb144b2cbbb /src/gui/kernel/qwidget_win.cpp | |
parent | 17c5b2620178ce59d0d85d91c03880fc8b0d9992 (diff) | |
download | Qt-8327f68945134b8057b0ade7d19897e226d3a7b5.zip Qt-8327f68945134b8057b0ade7d19897e226d3a7b5.tar.gz Qt-8327f68945134b8057b0ade7d19897e226d3a7b5.tar.bz2 |
Dont use gestures if there is no touch screen.
If there is no touch input device attached on Windows7, we shouldn't even
bother subscribing to native gesture events.
Task-number: QTBUG-6007
Reviewed-by: Thierry
Reviewed-by: Prasanth
Diffstat (limited to 'src/gui/kernel/qwidget_win.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp index 10522ed..9acfb70 100644 --- a/src/gui/kernel/qwidget_win.cpp +++ b/src/gui/kernel/qwidget_win.cpp @@ -2052,6 +2052,8 @@ void QWidgetPrivate::winSetupGestures() if (!q || !q->isVisible() || !nativeGesturePanEnabled) return; + if (!QApplicationPrivate::HasTouchSupport) + return; QApplicationPrivate *qAppPriv = QApplicationPrivate::instance(); if (!qAppPriv->SetGestureConfig) return; |