From b568421d8d736a7a90d3ec45a440b5032efcd382 Mon Sep 17 00:00:00 2001 From: Pierre Raybaut Date: Tue, 10 Sep 2024 14:31:15 +0200 Subject: [PATCH] tests/unit/utils.py: fix deprecated call to `QMouseEvent` --- plotpy/tests/unit/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plotpy/tests/unit/utils.py b/plotpy/tests/unit/utils.py index 8e7af12..2f9ee70 100644 --- a/plotpy/tests/unit/utils.py +++ b/plotpy/tests/unit/utils.py @@ -162,6 +162,7 @@ def mouse_event_at_relative_plot_pos( mouse_event = QG.QMouseEvent( type_, canvas_pos, + canvas.mapToGlobal(canvas_pos.toPoint()), btn, btn, mod,