- 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:
Marius Stanciu
2019-11-15 22:07:23 +02:00
committed by Marius
parent 172f527713
commit 3df0c8871c
2 changed files with 3 additions and 0 deletions

View File

@@ -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: