mirror of https://github.com/Syncplay/syncplay
Ensure slowdown/rewind spinboxes are not too narrow
This commit is contained in:
parent
f9d0a3fc96
commit
803dce9a4f
|
@ -438,8 +438,7 @@ class ConfigDialog(QtGui.QDialog):
|
|||
except ValueError:
|
||||
self.slowdownThresholdSpinbox.setValue(constants.DEFAULT_SLOWDOWN_KICKIN_THRESHOLD)
|
||||
self.slowdownThresholdSpinbox.setSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
|
||||
self.slowdownThresholdSpinbox.setMinimumWidth(80)
|
||||
self.slowdownThresholdSpinbox.setMaximumWidth(80)
|
||||
self.slowdownThresholdSpinbox.setFixedWidth(self.slowdownThresholdSpinbox.minimumSizeHint().width())
|
||||
self.slowdownThresholdSpinbox.setMinimum(constants.MINIMUM_SLOWDOWN_THRESHOLD)
|
||||
self.slowdownThresholdSpinbox.setSingleStep(0.1)
|
||||
self.slowdownThresholdSpinbox.setSuffix(getMessage("seconds-suffix"))
|
||||
|
@ -456,8 +455,7 @@ class ConfigDialog(QtGui.QDialog):
|
|||
except ValueError:
|
||||
self.rewindThresholdSpinbox.setValue(constants.DEFAULT_REWIND_THRESHOLD)
|
||||
self.rewindThresholdSpinbox.setSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
|
||||
self.rewindThresholdSpinbox.setMinimumWidth(80)
|
||||
self.rewindThresholdSpinbox.setMaximumWidth(80)
|
||||
self.rewindThresholdSpinbox.setFixedWidth(self.rewindThresholdSpinbox.minimumSizeHint().width())
|
||||
self.rewindThresholdSpinbox.setMinimum(constants.MINIMUM_REWIND_THRESHOLD)
|
||||
self.rewindThresholdSpinbox.setSingleStep(0.1)
|
||||
self.rewindThresholdSpinbox.setSuffix(getMessage("seconds-suffix"))
|
||||
|
|
Loading…
Reference in New Issue