QAbstractButton: do not steal wheel event when disabled

Fixes: QTBUG-102091
Pick-to: 6.4 6.3 6.2
Change-Id: I9a6683ad94a739c9997ebc68dd4ca8cf05438c45
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tasuku Suzuki 2022-08-25 11:34:39 +09:00
parent 7e89e6bfe8
commit f8409b6e9c

View File

@ -904,9 +904,6 @@ bool QAbstractButton::event(QEvent *e)
case QEvent::HoverEnter:
case QEvent::HoverLeave:
case QEvent::ContextMenu:
#if QT_CONFIG(wheelevent)
case QEvent::Wheel:
#endif
return true;
default:
break;