Skip to content

Commit

Permalink
Fix deprecated call to QMouseEvent in tests/unit/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Sep 10, 2024
1 parent 0115cfb commit 241416a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotpy/tests/unit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 241416a

Please sign in to comment.