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:
parent
7e89e6bfe8
commit
f8409b6e9c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user