diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-09-15 04:15:03 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-09-15 04:15:03 (GMT) |
commit | b8ff1ae9d53d7cac64c90d3cf29a5f4ed7379330 (patch) | |
tree | 2a1f741ba5c1ef983122c886ae346e3f080fc958 /tools/qml/qmlruntime.cpp | |
parent | a2ca8c305e6ebe145b82588d088f5dc16a4db861 (diff) | |
download | Qt-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.cpp | 2 |
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 |