Skip to content

Commit 7db3580

Browse files
committed
Tests: fix QWheelEvent obsolete (Qt5) constructor call
1 parent 6b9c8dc commit 7db3580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotpy/tests/unit/utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ def new_wheel_event(
100100
canva_pos, glob_pos = rel_pos_to_canvas_pos(canvas, pos_xy)
101101
angle_delta = QC.QPoint(0, angle_delta) # Scroll distance in eighths of a degree
102102
pix_delta = QC.QPoint(0, pix_delta) # Scroll distance in pixels
103-
qt4_delta = 0 # You may need to adjust this value
104-
orientation = QC.Qt.Orientation.Vertical # You may need to adjust this value
103+
phase = QC.Qt.ScrollPhase.NoScrollPhase
104+
inverted = False
105105

106106
# Create QWheelEvent
107107
return QG.QWheelEvent(
108-
canva_pos, glob_pos, pix_delta, angle_delta, qt4_delta, orientation, btns, mods
108+
canva_pos, glob_pos, pix_delta, angle_delta, btns, mods, phase, inverted
109109
)
110110

111111

0 commit comments

Comments
 (0)