From 32a3e979b06e858748fd74764aeeaf91448b8444 Mon Sep 17 00:00:00 2001 From: Michael Mouchous Date: Mon, 25 Nov 2024 09:52:39 +0100 Subject: [PATCH] Change name of signal follow_stage_sight_changed --- laserstudio/widgets/toolbars/zoomtoolbar.py | 2 +- laserstudio/widgets/viewer.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/laserstudio/widgets/toolbars/zoomtoolbar.py b/laserstudio/widgets/toolbars/zoomtoolbar.py index e94cfd5..e08165a 100644 --- a/laserstudio/widgets/toolbars/zoomtoolbar.py +++ b/laserstudio/widgets/toolbars/zoomtoolbar.py @@ -68,7 +68,7 @@ def __init__(self, viewer: "Viewer"): w.setCheckable(True) w.setIconSize(QSize(24, 24)) w.toggled.connect(lambda x: viewer.__setattr__("follow_stage_sight", x)) - viewer.followStageSightChanged.connect(w.setChecked) + viewer.follow_stage_sight_changed.connect(w.setChecked) w.setChecked(True) self.addWidget(w) diff --git a/laserstudio/widgets/viewer.py b/laserstudio/widgets/viewer.py index f477c31..4c7e66e 100644 --- a/laserstudio/widgets/viewer.py +++ b/laserstudio/widgets/viewer.py @@ -53,7 +53,7 @@ class Mode(int, Enum): # Signal emitted when the mouse has moved in scene mouse_moved = pyqtSignal(float, float) # Signal emitted when the follow stage sight option changed - followStageSightChanged = pyqtSignal(bool) + follow_stage_sight_changed = pyqtSignal(bool) def __init__(self, parent=None): super().__init__(parent) @@ -153,7 +153,7 @@ def follow_stage_sight(self, value: bool): # Emit the signal if necessary if self._follow_stage_sight != value: self._follow_stage_sight = value - self.followStageSightChanged.emit(value) + self.follow_stage_sight_changed.emit(value) def reset_camera(self): """Resets the camera to show all elements of the scene"""