- finished adding in Geometry Editor a TreeWidget with the geometry shapes found in the edited object
This commit is contained in:
@@ -154,7 +154,7 @@ class RadioSet(QtWidgets.QWidget):
|
||||
|
||||
class FCTree(QtWidgets.QTreeWidget):
|
||||
|
||||
def __init__(self, parent=None, columns=2, header_hidden=True):
|
||||
def __init__(self, parent=None, columns=2, header_hidden=True, extended_sel=False):
|
||||
super(FCTree, self).__init__(parent)
|
||||
|
||||
self.setColumnCount(columns)
|
||||
@@ -162,6 +162,9 @@ class FCTree(QtWidgets.QTreeWidget):
|
||||
self.header().setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents)
|
||||
self.setSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Expanding)
|
||||
|
||||
if extended_sel:
|
||||
self.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
|
||||
|
||||
def addParent(self, parent, title, expanded=False, color=None, font=None):
|
||||
item = QtWidgets.QTreeWidgetItem(parent, [title])
|
||||
item.setChildIndicatorPolicy(QtWidgets.QTreeWidgetItem.ShowIndicator)
|
||||
|
||||
Reference in New Issue
Block a user