From beacb3c0572eee72d0faf80cb736610059c37768 Mon Sep 17 00:00:00 2001 From: Greg <26096779+snowgoer540@users.noreply.github.com> Date: Wed, 17 May 2023 20:02:49 -0400 Subject: [PATCH] qtplasmac: change set_margin_width to set_margin_metric fixes crash caused by commit 96bc4e7 --- share/qtvcp/screens/qtplasmac/qtplasmac_handler.py | 14 +++++++------- share/qtvcp/screens/qtplasmac/versions.html | 6 ++++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py b/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py index d1a5fe75863..0a49a553daf 100644 --- a/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py +++ b/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py @@ -1,4 +1,4 @@ -VERSION = '1.235.273' +VERSION = '1.235.274' ''' qtplasmac_handler.py @@ -963,13 +963,13 @@ def init_widgets(self): self.w.conv_material.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded) self.w.materials_box.view().setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded) self.w.materials_box.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded) - self.w.gcode_display.set_margin_width(3) + self.w.gcode_display.set_margin_metric(3) self.w.gcode_display.setBraceMatching(False) self.w.gcode_display.setCaretWidth(0) self.w.gcode_display.setCornerWidget(QLabel()) self.w.gcode_editor.topBox.setContentsMargins(4,4,4,4) self.w.gcode_editor.bottomBox.setContentsMargins(4,4,4,4) - self.w.gcode_editor.set_margin_width(3) + self.w.gcode_editor.set_margin_metric(3) self.w.gcode_editor.editor.setBraceMatching(False) self.w.gcode_editor.editor.setCaretWidth(4) self.w.gcode_editor.editor.setCornerWidget(QLabel()) @@ -1541,8 +1541,8 @@ def file_loaded(self, obj, filename): self.w.gcode_editor.editor.new_text() self.w.gcode_editor.editor.setModified(False) self.w.gcode_display.new_text() - self.w.gcode_display.set_margin_width(3) - self.w.gcode_editor.set_margin_width(3) + self.w.gcode_display.set_margin_metric(3) + self.w.gcode_editor.set_margin_metric(3) ACTION.SET_MANUAL_MODE() if not len(self.w.gcode_display.text()): self.w.gcode_display.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) @@ -2029,8 +2029,8 @@ def zoom_out_pressed(self): def gcode_display_loaded(self): gcodeLines = len(str(self.w.gcode_display.lines())) - self.w.gcode_display.set_margin_width(gcodeLines) - self.w.gcode_editor.set_margin_width(gcodeLines) + self.w.gcode_display.set_margin_metric(gcodeLines) + self.w.gcode_editor.set_margin_metric(gcodeLines) def file_clear_clicked(self): if self.fileOpened: diff --git a/share/qtvcp/screens/qtplasmac/versions.html b/share/qtvcp/screens/qtplasmac/versions.html index f09358f08ee..ebab762260e 100644 --- a/share/qtvcp/screens/qtplasmac/versions.html +++ b/share/qtvcp/screens/qtplasmac/versions.html @@ -30,6 +30,12 @@

QtPlasmaC Version History


+
v1.235.274 2023 May 17 + +Changes submitted by snowgoer540 (Greg Carl)
+
v1.235.273 2023 Apr 25