- fixed a small issue with clicking in a disabled FCDoubleSpinner or FCSpinner still doing a selection
This commit is contained in:
parent
b166b3f7dd
commit
08e740d45b
|
@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
|
|
||||||
- fixed the V-shape tool diameter calculation in NCC Tool
|
- fixed the V-shape tool diameter calculation in NCC Tool
|
||||||
- in NCC Tool made the new tool dia (circular type) a parameter in Preferences
|
- in NCC Tool made the new tool dia (circular type) a parameter in Preferences
|
||||||
|
- fixed a small issue with clicking in a disabled FCDoubleSpinner or FCSpinner still doing a selection
|
||||||
|
|
||||||
30.10.2019
|
30.10.2019
|
||||||
|
|
||||||
|
|
|
@ -519,6 +519,7 @@ class FCSpinner(QtWidgets.QSpinBox):
|
||||||
|
|
||||||
def eventFilter(self, object, event):
|
def eventFilter(self, object, event):
|
||||||
if event.type() == QtCore.QEvent.MouseButtonPress:
|
if event.type() == QtCore.QEvent.MouseButtonPress:
|
||||||
|
if self.isEnabled():
|
||||||
if self.readyToEdit:
|
if self.readyToEdit:
|
||||||
self.lineEdit().selectAll()
|
self.lineEdit().selectAll()
|
||||||
self.readyToEdit = False
|
self.readyToEdit = False
|
||||||
|
@ -595,6 +596,7 @@ class FCDoubleSpinner(QtWidgets.QDoubleSpinBox):
|
||||||
|
|
||||||
def eventFilter(self, object, event):
|
def eventFilter(self, object, event):
|
||||||
if event.type() == QtCore.QEvent.MouseButtonPress:
|
if event.type() == QtCore.QEvent.MouseButtonPress:
|
||||||
|
if self.isEnabled():
|
||||||
if self.readyToEdit:
|
if self.readyToEdit:
|
||||||
self.lineEdit().selectAll()
|
self.lineEdit().selectAll()
|
||||||
self.readyToEdit = False
|
self.readyToEdit = False
|
||||||
|
|
Loading…
Reference in New Issue