From 402994e09b8bae2c79e9a23be27fee291634a9b4 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Tue, 25 Jul 2023 17:23:25 +0200 Subject: [PATCH] remove parameter limit; closes #106 --- src/gui_qt/fit/fit_forms.py | 3 +-- src/gui_qt/fit/fit_parameter.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui_qt/fit/fit_forms.py b/src/gui_qt/fit/fit_forms.py index f0f63f7..0ef0591 100644 --- a/src/gui_qt/fit/fit_forms.py +++ b/src/gui_qt/fit/fit_forms.py @@ -20,10 +20,9 @@ class FitModelWidget(QtWidgets.QWidget, Ui_FitParameter): self.parametername.setText(label + ' ') validator = QtGui.QDoubleValidator() - validator.setDecimals(9) self.parameter_line.setValidator(validator) self.parameter_line.setText('1') - self.parameter_line.setMaximumWidth(60) + self.parameter_line.setMaximumWidth(240) self.lineEdit.setMaximumWidth(60) self.lineEdit_2.setMaximumWidth(60) diff --git a/src/gui_qt/fit/fit_parameter.py b/src/gui_qt/fit/fit_parameter.py index 682893e..95bf9db 100644 --- a/src/gui_qt/fit/fit_parameter.py +++ b/src/gui_qt/fit/fit_parameter.py @@ -298,7 +298,7 @@ class ParameterSingleWidget(QtWidgets.QWidget): self._name = name self.label.setText(convert(name)) - self.label.setToolTip('IIf this is bold then this parameter is only for this data. otherwise the general parameter is used and displayed') + self.label.setToolTip('If this is bold then this parameter is only for this data. otherwise the general parameter is used and displayed') self.value_line.setValidator(QtGui.QDoubleValidator()) self.value_line.textChanged.connect(lambda: self.valueChanged.emit(self.value) if self.value is not None else 0)