|
1 | | -VERSION = '1.235.273' |
| 1 | +VERSION = '1.235.274' |
2 | 2 |
|
3 | 3 | ''' |
4 | 4 | qtplasmac_handler.py |
@@ -963,13 +963,13 @@ def init_widgets(self): |
963 | 963 | self.w.conv_material.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded) |
964 | 964 | self.w.materials_box.view().setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded) |
965 | 965 | self.w.materials_box.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded) |
966 | | - self.w.gcode_display.set_margin_width(3) |
| 966 | + self.w.gcode_display.set_margin_metric(3) |
967 | 967 | self.w.gcode_display.setBraceMatching(False) |
968 | 968 | self.w.gcode_display.setCaretWidth(0) |
969 | 969 | self.w.gcode_display.setCornerWidget(QLabel()) |
970 | 970 | self.w.gcode_editor.topBox.setContentsMargins(4,4,4,4) |
971 | 971 | self.w.gcode_editor.bottomBox.setContentsMargins(4,4,4,4) |
972 | | - self.w.gcode_editor.set_margin_width(3) |
| 972 | + self.w.gcode_editor.set_margin_metric(3) |
973 | 973 | self.w.gcode_editor.editor.setBraceMatching(False) |
974 | 974 | self.w.gcode_editor.editor.setCaretWidth(4) |
975 | 975 | self.w.gcode_editor.editor.setCornerWidget(QLabel()) |
@@ -1541,8 +1541,8 @@ def file_loaded(self, obj, filename): |
1541 | 1541 | self.w.gcode_editor.editor.new_text() |
1542 | 1542 | self.w.gcode_editor.editor.setModified(False) |
1543 | 1543 | self.w.gcode_display.new_text() |
1544 | | - self.w.gcode_display.set_margin_width(3) |
1545 | | - self.w.gcode_editor.set_margin_width(3) |
| 1544 | + self.w.gcode_display.set_margin_metric(3) |
| 1545 | + self.w.gcode_editor.set_margin_metric(3) |
1546 | 1546 | ACTION.SET_MANUAL_MODE() |
1547 | 1547 | if not len(self.w.gcode_display.text()): |
1548 | 1548 | self.w.gcode_display.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) |
@@ -2029,8 +2029,8 @@ def zoom_out_pressed(self): |
2029 | 2029 |
|
2030 | 2030 | def gcode_display_loaded(self): |
2031 | 2031 | gcodeLines = len(str(self.w.gcode_display.lines())) |
2032 | | - self.w.gcode_display.set_margin_width(gcodeLines) |
2033 | | - self.w.gcode_editor.set_margin_width(gcodeLines) |
| 2032 | + self.w.gcode_display.set_margin_metric(gcodeLines) |
| 2033 | + self.w.gcode_editor.set_margin_metric(gcodeLines) |
2034 | 2034 |
|
2035 | 2035 | def file_clear_clicked(self): |
2036 | 2036 | if self.fileOpened: |
|
0 commit comments