Skip to content

Commit

Permalink
fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jul 10, 2024
1 parent 2718bdb commit 6d20fed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ def _resize_to_fit(self) -> None:
def mousePressEvent(self, event: QMouseEvent | None) -> None:
if event is not None:
scene_pos = self.mapToScene(event.pos())
print(scene_pos)
items = self.scene().items(scene_pos)
for item in items:
if pos := item.data(DATA_POSITION):
Expand Down
1 change: 1 addition & 0 deletions tests/useq_widgets/test_useq_points_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def test_clicking_point_changes_first_position(qtbot: QtBot) -> None:
event = QMouseEvent(
QMouseEvent.Type.MouseButtonPress,
wdg._well_view.mapFromScene(0, 0).toPointF(),
wdg._well_view.mapFromScene(0, 0).toPointF(),
Qt.MouseButton.LeftButton,
Qt.MouseButton.LeftButton,
Qt.KeyboardModifier.NoModifier,
Expand Down

0 comments on commit 6d20fed

Please sign in to comment.