Skip to content

Commit 777cf4f

Browse files
committed
Merge branch '2.9'
2 parents 2f322c9 + beacb3c commit 777cf4f

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '1.235.273'
1+
VERSION = '1.235.274'
22

33
'''
44
qtplasmac_handler.py
@@ -963,13 +963,13 @@ def init_widgets(self):
963963
self.w.conv_material.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
964964
self.w.materials_box.view().setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
965965
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)
967967
self.w.gcode_display.setBraceMatching(False)
968968
self.w.gcode_display.setCaretWidth(0)
969969
self.w.gcode_display.setCornerWidget(QLabel())
970970
self.w.gcode_editor.topBox.setContentsMargins(4,4,4,4)
971971
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)
973973
self.w.gcode_editor.editor.setBraceMatching(False)
974974
self.w.gcode_editor.editor.setCaretWidth(4)
975975
self.w.gcode_editor.editor.setCornerWidget(QLabel())
@@ -1541,8 +1541,8 @@ def file_loaded(self, obj, filename):
15411541
self.w.gcode_editor.editor.new_text()
15421542
self.w.gcode_editor.editor.setModified(False)
15431543
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)
15461546
ACTION.SET_MANUAL_MODE()
15471547
if not len(self.w.gcode_display.text()):
15481548
self.w.gcode_display.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
@@ -2029,8 +2029,8 @@ def zoom_out_pressed(self):
20292029

20302030
def gcode_display_loaded(self):
20312031
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)
20342034

20352035
def file_clear_clicked(self):
20362036
if self.fileOpened:

share/qtvcp/screens/qtplasmac/versions.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ <h2>QtPlasmaC Version History</h2>
3030
</table>
3131
<br>
3232
<!--- ****** ADD NEXT VERSION BELOW THIS LINE ****** --->
33+
<br><b><u>v1.235.274 2023 May 17</u></b>
34+
<ul style="margin:0;">
35+
<li>change set_margin_width to set_margin_metric</li>
36+
</ul>
37+
<i>Changes submitted by snowgoer540 (Greg Carl)</i><br>
38+
3339
<br><b><u>v1.235.273 2023 Apr 25</u></b>
3440
<ul style="margin:0;">
3541
<li>prevent hang on large moves from user buttons</li>

0 commit comments

Comments
 (0)