From e24c099b6460e7500dd9831ce608c7ea8a0e2905 Mon Sep 17 00:00:00 2001 From: LoneGit <100798196+LoneGit@users.noreply.github.com> Date: Tue, 11 Jun 2024 07:37:11 +0300 Subject: [PATCH] Changing the validator (#157) --- src/settings_widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings_widget.py b/src/settings_widget.py index f7c25b4..51e7079 100644 --- a/src/settings_widget.py +++ b/src/settings_widget.py @@ -1083,7 +1083,7 @@ def on_change(): support_xy_offset_label = QLabel(self.locale.SupportXYOffset) support_xy_offset_value = LineEdit(str(self.sett().supports.xy_offset)) - support_xy_offset_value.setValidator(self.intValidator) + support_xy_offset_value.setValidator(self.doubleValidator) self.panel.addWidget(support_xy_offset_label, self.next_row, 1) self.panel.addWidget( support_xy_offset_value, self.cur_row, 2, 1, self.col2_cells