From 241416afc710900021f7835511d4de9c4d46dd1d Mon Sep 17 00:00:00 2001 From: Pierre Raybaut Date: Tue, 10 Sep 2024 15:19:16 +0200 Subject: [PATCH] Fix deprecated call to `QMouseEvent` in `tests/unit/utils.py` --- plotpy/tests/unit/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotpy/tests/unit/utils.py b/plotpy/tests/unit/utils.py index 3f51f79..a21e6f1 100644 --- a/plotpy/tests/unit/utils.py +++ b/plotpy/tests/unit/utils.py @@ -162,7 +162,7 @@ def mouse_event_at_relative_plot_pos( mouse_event = QG.QMouseEvent( type_, canvas_pos, - canvas.mapToGlobal(QC.QPointF(canvas_pos.toPoint())), + QC.QPointF(canvas.mapToGlobal(canvas_pos.toPoint())), btn, btn, mod,