From 8bbda879566f41a516f18cd217d10940f2c04051 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 22 Sep 2020 00:15:43 +0200 Subject: [PATCH] Fix deprecated QWheelEvent.x() --- client/src/proxguiqt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/proxguiqt.cpp b/client/src/proxguiqt.cpp index 58af96975..512b3369e 100644 --- a/client/src/proxguiqt.cpp +++ b/client/src/proxguiqt.cpp @@ -686,7 +686,7 @@ void Plot::wheelEvent(QWheelEvent *event) { // 120+shift => zoom out 10% const float zoom_offset = 0.1; if (event->modifiers() & Qt::ShiftModifier) { - int x = event->x(); + int x = event->position().x(); x -= WIDTH_AXES; x = (int)(x / GraphPixelsPerPoint); x += GraphStart;