From 0f0c46126adda750c37e7ab673a0cf7321f9ff72 Mon Sep 17 00:00:00 2001 From: PianetaRadio <78976006+PianetaRadio@users.noreply.github.com> Date: Tue, 12 Apr 2022 20:25:54 +0200 Subject: [PATCH] vfodisplay WheelEvent pos QT version check for compatibility pos or position --- vfodisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vfodisplay.cpp b/vfodisplay.cpp index 17eae0d..5265c8e 100644 --- a/vfodisplay.cpp +++ b/vfodisplay.cpp @@ -141,7 +141,11 @@ void vfoDisplay::wheelEvent(QWheelEvent *event) { event->accept(); +#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) QPointF pointerPos = event->position(); +#else + QPointF pointerPos = event->pos(); +#endif for (int i = 1; i < 10; i ++) {