- in all Object UI's fixed the Properties section columns resize to content on expansion/collapse of the items
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user