Browse Source

wefaxdemodgui: Use QWheelEvent::position() on Qt 5.15+

Use QWheelEvent::position() instead of the deprecated pos()
method on Qt 5.15 and later to eliminate the compiler warning,
while retaining compatibility with older Qt 5 versions.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.1.0
Robin Getz 4 weeks ago
parent
commit
8119562b37
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      plugins/channelrx/demodwefax/wefaxdemodgui.cpp

2
plugins/channelrx/demodwefax/wefaxdemodgui.cpp

@ -695,7 +695,7 @@ bool WefaxDemodGUI::eventFilter(QObject *watched, QEvent *event) @@ -695,7 +695,7 @@ bool WefaxDemodGUI::eventFilter(QObject *watched, QEvent *event)
}
if (delta != 0)
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
const QPoint anchor = wheelEvent->position().toPoint();
#else
const QPoint anchor = wheelEvent->pos();

Loading…
Cancel
Save