summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsview.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-05-20 08:22:14 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-05-20 08:22:14 (GMT)
commitd92b8e0fdcbfcad0c98b8c51fe2bd6451868af62 (patch)
tree462bf65a95e6de5438c728cbf157994e9684cd37 /src/gui/graphicsview/qgraphicsview.cpp
parenteff255bd29a8cbd09494f9e9480c2e4b07869386 (diff)
parenta948c797e0c45c965ada005b34c274514a3c4d42 (diff)
downloadQt-d92b8e0fdcbfcad0c98b8c51fe2bd6451868af62.zip
Qt-d92b8e0fdcbfcad0c98b8c51fe2bd6451868af62.tar.gz
Qt-d92b8e0fdcbfcad0c98b8c51fe2bd6451868af62.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts: examples/declarative/toys/dynamicscene/qml/itemCreation.js
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp
index d2964ca..9dfcd2c 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -2688,6 +2688,11 @@ void QGraphicsView::setupViewport(QWidget *widget)
if (d->scene && !d->scene->d_func()->allItemsIgnoreTouchEvents)
widget->setAttribute(Qt::WA_AcceptTouchEvents);
+ if (d->scene) {
+ foreach (Qt::GestureType gesture, d->scene->d_func()->grabbedGestures.keys())
+ widget->grabGesture(gesture);
+ }
+
widget->setAcceptDrops(acceptDrops());
}