- fixed issue #335. The FCDoubleSPinBox (and FCSpinBox) value was not used when the user entered data but just hovered away the mouse expecting the data to be already confirmed
This commit is contained in:
parent
172f527713
commit
3df0c8871c
|
@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||
15.11.2019
|
||||
|
||||
- added all the recognized extensions to the save dialog filters; latest extension used will be preselected next time a save operation occur
|
||||
- fixed issue #335. The FCDoubleSPinBox (and FCSpinBox) value was not used when the user entered data but just hovered away the mouse expecting the data to be already confirmed
|
||||
|
||||
14.11.2019
|
||||
|
||||
|
|
|
@ -542,6 +542,7 @@ class FCSpinner(QtWidgets.QSpinBox):
|
|||
|
||||
def on_edit_finished(self):
|
||||
self.clearFocus()
|
||||
self.returnPressed.emit()
|
||||
|
||||
# def mousePressEvent(self, e, parent=None):
|
||||
# super(FCSpinner, self).mousePressEvent(e) # required to deselect on 2e click
|
||||
|
@ -593,6 +594,7 @@ class FCDoubleSpinner(QtWidgets.QDoubleSpinBox):
|
|||
|
||||
def on_edit_finished(self):
|
||||
self.clearFocus()
|
||||
self.returnPressed.emit()
|
||||
|
||||
def eventFilter(self, object, event):
|
||||
if event.type() == QtCore.QEvent.MouseButtonPress:
|
||||
|
|
Loading…
Reference in New Issue