From c23b3fae182e7cc37fafc5cb341cb0d2e4bd0b8a Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 12 Mar 2020 09:59:46 +0100 Subject: [PATCH] avoid deprecation warnings --- src/controls/QskScrollBox.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controls/QskScrollBox.cpp b/src/controls/QskScrollBox.cpp index b113917f..c3a3bf70 100644 --- a/src/controls/QskScrollBox.cpp +++ b/src/controls/QskScrollBox.cpp @@ -328,7 +328,12 @@ void QskScrollBox::gestureEvent( QskGestureEvent* event ) 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