Skip to content

Commit ee1d0e7

Browse files
committed
qtplasmac: add H and V scroll bars to material pickers (if needed)
1 parent cbebee0 commit ee1d0e7

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '1.235.270'
1+
VERSION = '1.235.271'
22

33
'''
44
qtplasmac_handler.py
@@ -956,6 +956,13 @@ def init_widgets(self):
956956
self.w.filemanager.loadButton.hide()
957957
# for copy/paste control if required
958958
self.w.filemanager.copy_control.hide()
959+
# add vertical and horizontal scroll bars to the materials QComboBoxs
960+
self.w.material_selector.view().setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
961+
self.w.material_selector.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
962+
self.w.conv_material.view().setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
963+
self.w.conv_material.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
964+
self.w.materials_box.view().setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
965+
self.w.materials_box.view().setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
959966
self.w.gcode_display.set_margin_width(3)
960967
self.w.gcode_display.setBraceMatching(False)
961968
self.w.gcode_display.setCaretWidth(0)

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.271 2023 Mar 29</u></b>
34+
<ul style="margin:0;">
35+
<li>add horizontal and vertical scroll bars to materials pickers (if needed)</li>
36+
</ul>
37+
<i>Changes submitted by snowgoer540 (Greg Carl)</i><br>
38+
3339
<br><b><u>v1.235.270 2023 Mar 25</u></b>
3440
<ul style="margin:0;">
3541
<li>update stylesheet to handle filemanager listview</li>

0 commit comments

Comments
 (0)