summaryrefslogtreecommitdiffstats
path: root/tools/qml/qmlruntime.cpp
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-09-15 04:15:03 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-09-15 04:15:03 (GMT)
commitb8ff1ae9d53d7cac64c90d3cf29a5f4ed7379330 (patch)
tree2a1f741ba5c1ef983122c886ae346e3f080fc958 /tools/qml/qmlruntime.cpp
parenta2ca8c305e6ebe145b82588d088f5dc16a4db861 (diff)
downloadQt-b8ff1ae9d53d7cac64c90d3cf29a5f4ed7379330.zip
Qt-b8ff1ae9d53d7cac64c90d3cf29a5f4ed7379330.tar.gz
Qt-b8ff1ae9d53d7cac64c90d3cf29a5f4ed7379330.tar.bz2
Compile with QT_NO_GESTURES.
Diffstat (limited to 'tools/qml/qmlruntime.cpp')
-rw-r--r--tools/qml/qmlruntime.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp
index 1eb7ee8..c59621a 100644
--- a/tools/qml/qmlruntime.cpp
+++ b/tools/qml/qmlruntime.cpp
@@ -692,12 +692,14 @@ QDeclarativeViewer::~QDeclarativeViewer()
void QDeclarativeViewer::enableExperimentalGestures()
{
+#ifndef QT_NO_GESTURES
canvas->viewport()->grabGesture(Qt::TapGesture,Qt::DontStartGestureOnChildren|Qt::ReceivePartialGestures|Qt::IgnoredGesturesPropagateToParent);
canvas->viewport()->grabGesture(Qt::TapAndHoldGesture,Qt::DontStartGestureOnChildren|Qt::ReceivePartialGestures|Qt::IgnoredGesturesPropagateToParent);
canvas->viewport()->grabGesture(Qt::PanGesture,Qt::DontStartGestureOnChildren|Qt::ReceivePartialGestures|Qt::IgnoredGesturesPropagateToParent);
canvas->viewport()->grabGesture(Qt::PinchGesture,Qt::DontStartGestureOnChildren|Qt::ReceivePartialGestures|Qt::IgnoredGesturesPropagateToParent);
canvas->viewport()->grabGesture(Qt::SwipeGesture,Qt::DontStartGestureOnChildren|Qt::ReceivePartialGestures|Qt::IgnoredGesturesPropagateToParent);
canvas->viewport()->setAttribute(Qt::WA_AcceptTouchEvents);
+#endif
}
QDeclarativeView *QDeclarativeViewer::view() const