Fix warning for -no-feature-gestures
Change-Id: Iaadc4e27ee2a75a8c053de4438ef74daaa48ee64 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
dde83fdeeb
commit
45f7d35f7b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user