GUI: added a force_update-function to number_line_edit.py

This commit is contained in:
2025-11-05 13:34:55 +01:00
parent 93fa4b5bd4
commit 3afd05ee3b
@@ -64,6 +64,11 @@ class NumberLineEdit(QLineEdit):
self.saved_value = val
self.setText(self.to_string(val))
def force_update_value(self, val: float):
# Always update text and saved_value
self.saved_value = val
self.setText(self.to_string(val))
@Slot(float, float)
def update_limits(self, min_val: float, max_val: float):
self.validator.setRange(min_val, max_val, self.decimal_count)