--- a/src/eric7/QScintilla/EditorOutlineSizesDialog.py Mon Jul 15 16:40:23 2024 +0200 +++ b/src/eric7/QScintilla/EditorOutlineSizesDialog.py Tue Jul 16 15:14:23 2024 +0200 @@ -20,7 +20,7 @@ Source Outline pane. """ - def __init__(self, currentWidth, defaultWidth, defaultStepSize, parent=None): + def __init__(self, currentWidth, defaultWidth, parent=None): """ Constructor @@ -28,8 +28,6 @@ @type int @param defaultWidth value of the default width @type int - @param defaultStepSize value of the step size - @type int @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ @@ -37,10 +35,8 @@ self.setupUi(self) self.__defaultWidth = defaultWidth - self.__defaultStepSize = defaultStepSize self.sourceOutlineWidthSpinBox.setValue(currentWidth) - self.sourceOutlineWidthStepSpinBox.setValue(defaultStepSize) msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) @@ -57,16 +53,12 @@ QDialogButtonBox.StandardButton.RestoreDefaults ): self.sourceOutlineWidthSpinBox.setValue(self.__defaultWidth) - self.sourceOutlineWidthStepSpinBox.setValue(self.__defaultStepSize) def getSizes(self): """ Public method to retrieve the entered values. - @return tuple containing the values of the default width and step size - @rtype tuple of (int, int) + @return new default width value + @rtype int """ - return ( - self.sourceOutlineWidthSpinBox.value(), - self.sourceOutlineWidthStepSpinBox.value(), - ) + return self.sourceOutlineWidthSpinBox.value()