summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-24 14:21:15 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-24 14:22:25 (GMT)
commite6d6ed97a3dd2e7ec5c95d760b0db47ad6e45250 (patch)
tree9fe21837f7907bb91ea97ac1e21785c0370a0bab /src/gui/kernel/qapplication.cpp
parent995629aba904f730b773b5a811e74f63ea0ff517 (diff)
downloadQt-e6d6ed97a3dd2e7ec5c95d760b0db47ad6e45250.zip
Qt-e6d6ed97a3dd2e7ec5c95d760b0db47ad6e45250.tar.gz
Qt-e6d6ed97a3dd2e7ec5c95d760b0db47ad6e45250.tar.bz2
We don't need to initialize multitouch in non-gui applications.
Reviewed-by: trustme Patch-by: raipriha
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r--src/gui/kernel/qapplication.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index 4764a2d..9f4cd0c 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -933,7 +933,8 @@ void QApplicationPrivate::initialize()
QApplicationPrivate::wheel_scroll_lines = 3;
#endif
- initializeMultitouch();
+ if (qt_is_gui_used)
+ initializeMultitouch();
}
/*!