Fix warning for -no-feature-gestures

Change-Id: Iaadc4e27ee2a75a8c053de4438ef74daaa48ee64
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Stephan Binner 2017-04-19 08:56:27 +02:00
parent dde83fdeeb
commit 45f7d35f7b

View File

@ -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;