avoid deprecation warnings

This commit is contained in:
Uwe Rathmann 2020-03-12 09:57:12 +01:00
parent 89b8321ed7
commit 263eef1e9a

View File

@ -158,7 +158,12 @@ bool QskInputGrabber::event( QEvent* event )
case QEvent::Wheel: case QEvent::Wheel:
{ {
const auto ev = static_cast< QWheelEvent* >( event ); const auto ev = static_cast< QWheelEvent* >( event );
#if QT_VERSION < 0x050e00
doBlock = isBlocking( ev->posF() ); doBlock = isBlocking( ev->posF() );
#else
doBlock = isBlocking( ev->position() );
#endif
break; break;
} }
case QEvent::HoverEnter: case QEvent::HoverEnter: