- added properties for the mouse position and mouse clicked position (and setters) and cleaned up the code regarding this data

This commit is contained in:
Marius Stanciu
2022-05-21 02:13:47 +03:00
committed by Marius
parent 61325b7b5f
commit bfb3aa4118
7 changed files with 85 additions and 72 deletions

View File

@@ -2846,7 +2846,7 @@ class ImportEditorGrb(QtCore.QObject, DrawTool):
self.snap_x = x
self.snap_y = y
self.app.mouse = [x, y]
self.app.mouse_pos = [x, y]
if self.pos is None:
self.pos = (0, 0)
@@ -5395,7 +5395,7 @@ class AppGerberEditor(QtCore.QObject):
self.snap_x = x
self.snap_y = y
self.app.mouse = [x, y]
self.app.mouse_pos = [x, y]
if self.pos is None:
self.pos = (0, 0)