- in all Object UI's fixed the Properties section columns resize to content on expansion/collapse of the items

This commit is contained in:
Marius Stanciu
2020-12-09 23:12:49 +02:00
committed by Marius
parent 3389d50e53
commit 1f65c9c05f
6 changed files with 30 additions and 2 deletions

View File

@@ -597,6 +597,8 @@ class CNCJobObject(FlatCAMObj, CNCjob):
# Properties
self.ui.properties_button.toggled.connect(self.on_properties)
self.calculations_finished.connect(self.update_area_chull)
self.ui.treeWidget.itemExpanded.connect(self.on_properties_expanded)
self.ui.treeWidget.itemCollapsed.connect(self.on_properties_expanded)
# Include CNC Job Snippets changed
self.ui.snippets_cb.toggled.connect(self.on_update_source_file)
@@ -739,6 +741,10 @@ class CNCJobObject(FlatCAMObj, CNCjob):
# make sure that the FCTree widget columns are resized to content
self.ui.treeWidget.resize_sig.emit()
def on_properties_expanded(self):
for col in range(self.treeWidget.columnCount()):
self.ui.treeWidget.resizeColumnToContents(col)
def on_add_al_probepoints(self):
# create the solid_geo