Fix build with -no-feature-wheelevent

Pick-to: 6.5
Change-Id: I8aea97df22c3ff83c8acdea1146138c30cef510a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tasuku Suzuki 2023-01-16 10:12:33 +09:00
parent edd5499c60
commit cd067a2680
1 changed files with 2 additions and 0 deletions

View File

@ -556,6 +556,7 @@ bool QQuickOverlay::eventFilter(QObject *object, QEvent *event)
d->handleRelease(d->window->contentItem(), event, nullptr);
break;
#if QT_CONFIG(wheelevent)
case QEvent::Wheel: {
// If the top item in the drawing-order is blocked by a modal popup, then
// eat the event. There is no scenario where the top most item is blocked
@ -583,6 +584,7 @@ bool QQuickOverlay::eventFilter(QObject *object, QEvent *event)
}
break;
}
#endif
default:
break;