mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
[bos #38044][EDF] (2023-T3) Support for automatic reparation. Fixed an accident changing of QDoubleSpinBox default value because of setting decimals.
This commit is contained in:
parent
cdfe60e59d
commit
a1f2f31d35
@ -60,6 +60,8 @@ class DlgRef_1Spin_QTD(Ui_DlgRef_1Spin_QTD, QWidget):
|
||||
self.setupUi(self)
|
||||
|
||||
self.TextLabel1.setText(title)
|
||||
self.SpinBox_DX.setValue(default_value)
|
||||
# Setting deciamals must be in the first place, because from QDoubleSpinBox docs:
|
||||
# the maximum, minimum and value might change as a result of changing this property.
|
||||
self.SpinBox_DX.setDecimals(decimals)
|
||||
self.SpinBox_DX.setMaximum(max_value)
|
||||
self.SpinBox_DX.setValue(default_value)
|
||||
|
Loading…
Reference in New Issue
Block a user