- 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

@@ -908,6 +908,9 @@ class FlatCAMObj(QtCore.QObject):
self.treeWidget.addChild(
location, ['%s:' % _('Copper Area'), '%.*f %s' % (self.decimals, copper_area, 'in2')], True)
for col in range(self.treeWidget.columnCount()):
self.ui.treeWidget.resizeColumnToContents(col)
@staticmethod
def poly2rings(poly):
return [poly.exterior] + [interior for interior in poly.interiors]