From 8119562b3754ec289df1901ff04e8e9e9cb3c05d Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 26 Oct 2026 21:03:04 -0400 Subject: [PATCH] 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 --- plugins/channelrx/demodwefax/wefaxdemodgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demodwefax/wefaxdemodgui.cpp b/plugins/channelrx/demodwefax/wefaxdemodgui.cpp index 1c0b34dd1..fc8df0afc 100644 --- a/plugins/channelrx/demodwefax/wefaxdemodgui.cpp +++ b/plugins/channelrx/demodwefax/wefaxdemodgui.cpp @@ -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();