SpinBox in dec mode sets minStep to step as fallback

This commit is contained in:
Mark Schloeman 2021-05-15 20:24:02 -04:00
parent 9566e2ba36
commit c9ea25eed6
1 changed files with 4 additions and 0 deletions

View File

@ -223,6 +223,10 @@ class SpinBox(QtGui.QAbstractSpinBox):
if 'format' not in opts:
self.opts['format'] = asUnicode("{value:d}{suffixGap}{suffix}")
if self.opts['dec']:
if self.opts.get('minStep') is None:
self.opts['minStep'] = self.opts['step']
if 'delay' in opts:
self.proxy.setDelay(opts['delay'])