Skip to content

Commit c7f671e

Browse files
committed
PyQt6 compat.: fix call to QMouseEvent in tests/unit/utils.py
1 parent b568421 commit c7f671e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotpy/tests/unit/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def mouse_event_at_relative_plot_pos(
162162
mouse_event = QG.QMouseEvent(
163163
type_,
164164
canvas_pos,
165-
canvas.mapToGlobal(canvas_pos.toPoint()),
165+
canvas.mapToGlobal(QC.QPointF(canvas_pos.toPoint())),
166166
btn,
167167
btn,
168168
mod,

0 commit comments

Comments
 (0)