summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-04-19 08:56:27 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-04-19 08:00:16 +0000
commit45f7d35f7b03e3b5fd0687e344d6a757cd4516ec (patch)
treedf85138638ac34e9faec702ea6776983b916d185 /src/widgets/graphicsview
parentdde83fdeebe83ad2a9e052ff94f8a325a64f8f38 (diff)
Fix warning for -no-feature-gestures
Change-Id: Iaadc4e27ee2a75a8c053de4438ef74daaa48ee64 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/widgets/graphicsview')
-rw-r--r--src/widgets/graphicsview/qgraphicsscene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/graphicsview/qgraphicsscene.cpp b/src/widgets/graphicsview/qgraphicsscene.cpp
index e6726285d9..35f6298a8a 100644
--- a/src/widgets/graphicsview/qgraphicsscene.cpp
+++ b/src/widgets/graphicsview/qgraphicsscene.cpp
@@ -1225,15 +1225,15 @@ bool QGraphicsScenePrivate::filterEvent(QGraphicsItem *item, QEvent *event)
*/
bool QGraphicsScenePrivate::sendEvent(QGraphicsItem *item, QEvent *event)
{
+#if QT_CONFIG(gestures)
if (QGraphicsObject *object = item->toGraphicsObject()) {
-#ifndef QT_NO_GESTURES
QGestureManager *gestureManager = QApplicationPrivate::instance()->gestureManager;
if (gestureManager) {
if (gestureManager->filterEvent(object, event))
return true;
}
-#endif // QT_NO_GESTURES
}
+#endif // QT_CONFIG(gestures)
if (filterEvent(item, event))
return false;