fix: error when using SpinBox(delay) argument
This commit is contained in:
parent
22b0ddaa21
commit
7be6f1e70c
@ -106,11 +106,11 @@ class SpinBox(QtGui.QAbstractSpinBox):
|
|||||||
self.skipValidate = False
|
self.skipValidate = False
|
||||||
self.setCorrectionMode(self.CorrectToPreviousValue)
|
self.setCorrectionMode(self.CorrectToPreviousValue)
|
||||||
self.setKeyboardTracking(False)
|
self.setKeyboardTracking(False)
|
||||||
|
self.proxy = SignalProxy(self.sigValueChanging, slot=self.delayedChange, delay=self.opts['delay'])
|
||||||
self.setOpts(**kwargs)
|
self.setOpts(**kwargs)
|
||||||
self._updateHeight()
|
self._updateHeight()
|
||||||
|
|
||||||
self.editingFinished.connect(self.editingFinishedEvent)
|
self.editingFinished.connect(self.editingFinishedEvent)
|
||||||
self.proxy = SignalProxy(self.sigValueChanging, slot=self.delayedChange, delay=self.opts['delay'])
|
|
||||||
|
|
||||||
def event(self, ev):
|
def event(self, ev):
|
||||||
ret = QtGui.QAbstractSpinBox.event(self, ev)
|
ret = QtGui.QAbstractSpinBox.event(self, ev)
|
||||||
|
Loading…
Reference in New Issue
Block a user