avoid deprecation warnings

This commit is contained in:
Uwe Rathmann 2020-03-12 09:59:46 +01:00
parent 132095e8db
commit c23b3fae18
1 changed files with 6 additions and 1 deletions

View File

@ -328,7 +328,12 @@ void QskScrollBox::gestureEvent( QskGestureEvent* event )
QPointF QskScrollBox::scrollOffset( const QWheelEvent* event ) const QPointF QskScrollBox::scrollOffset( const QWheelEvent* event ) const
{ {
if ( viewContentsRect().contains( event->posF() ) ) #if QT_VERSION < 0x050e00
const auto pos = event->posF();
#else
const auto pos = event->position();
#endif
if ( viewContentsRect().contains( pos ) )
{ {
/* /*
Not sure if that code makes sense, but I don't have an input device Not sure if that code makes sense, but I don't have an input device