- in Preferences General, Gerber, Geometry, Excellon, CNCJob sections made all the input fields of type SpinBox (where possible)
- updated the Distance Tool utility geometry color to adapt to the dark theme canvas
This commit is contained in:
@@ -524,6 +524,11 @@ class FCSpinner(QtWidgets.QSpinBox):
|
||||
return True
|
||||
return False
|
||||
|
||||
def wheelEvent(self, *args, **kwargs):
|
||||
# should work only there is a focus in the lineedit of the SpinBox
|
||||
if self.readyToEdit is False:
|
||||
super().wheelEvent(*args, **kwargs)
|
||||
|
||||
def on_edit_finished(self):
|
||||
self.clearFocus()
|
||||
|
||||
@@ -579,6 +584,11 @@ class FCDoubleSpinner(QtWidgets.QDoubleSpinBox):
|
||||
def on_edit_finished(self):
|
||||
self.clearFocus()
|
||||
|
||||
def wheelEvent(self, *args, **kwargs):
|
||||
# should work only there is a focus in the lineedit of the SpinBox
|
||||
if self.readyToEdit is False:
|
||||
super().wheelEvent(*args, **kwargs)
|
||||
|
||||
# def mousePressEvent(self, e, parent=None):
|
||||
# super(FCDoubleSpinner, self).mousePressEvent(e) # required to deselect on 2e click
|
||||
# if self.readyToEdit:
|
||||
|
||||
Reference in New Issue
Block a user