Make out-edges to frontier expandable from inside group :burgy:

This commit is contained in:
Audrey 2022-11-16 16:00:24 -07:00
parent 046b4538be
commit 58ea517c18
1 changed files with 7 additions and 1 deletions

View File

@ -586,6 +586,12 @@ class HierarchicalGraphWidget(QZoomableDraggableGraphicsView):
old_group = self._old_group
self._old_group = self.current_group.am_obj
self._layouts[old_group] = {qnode.model: qnode.center for qnode in self.qnodes}
self.drop_target = None
self.end_expand()
for node in chain(self.ignore, self.faux_frontier):
self.hg.move_node(node, self.current_group.am_obj)
self._layout(600)
self._update_scene_rect(True)
if focus is None:
@ -750,7 +756,7 @@ class PropChart(QGraphicsItem):
for item in list(self.childItems()):
self.scene().removeItem(item)
data = [(offset, kind, size, count) for offset, v1 in self.prop.struct_data.items() for size, v2 in v1.items() for kind, count in v2.items()]
data = [(offset, kind, size, count) for offset, v1 in self.prop.struct_data.items() for size, v2 in v1.items() for kind, count in v2.items() if count]
data.sort(key=lambda x: (x[0], x[1], -x[2], x[3]))
cols_allocated = defaultdict(int)
row_allocated = 0