Skip to content

Commit

Permalink
Update comments, remove unused import and remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Aug 20, 2024
1 parent 53aca80 commit 8305a4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions laserstudio/widgets/toolbars/zoomtoolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ def __init__(self, viewer: "Viewer"):
self.setAllowedAreas(Qt.ToolBarArea.TopToolBarArea)
self.setFloatable(True)

# Store a reference to the viewer.
self.viewer = viewer

# Zoom in (*2).
w = QPushButton(self)
w.setToolTip("Zoom in")
Expand Down
5 changes: 2 additions & 3 deletions laserstudio/widgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
QFileDialog,
QGraphicsPixmapItem,
)
from PyQt6.QtCore import Qt, QPointF, pyqtSignal, pyqtProperty
from PyQt6.QtCore import Qt, QPointF, pyqtSignal
from PyQt6.QtGui import (
QBrush,
QColorConstants,
Expand Down Expand Up @@ -359,8 +359,7 @@ def mousePressEvent(self, event: Optional[QMouseEvent]):

# The event is a press of the right button
if event.button() == Qt.MouseButton.RightButton:
# Disable the stagesight following,
# through the toolbar' button (to update its state)
# Disable the StageSight tracking
self.follow_stage_sight = False

# Scroll gesture mode
Expand Down

0 comments on commit 8305a4d

Please sign in to comment.