Expand one layer by default to make IDA navigation easier.

This commit is contained in:
winniepe
2020-08-30 16:27:48 +00:00
parent 6c07617082
commit 19e5e9b766

View File

@@ -59,12 +59,13 @@ class CapaExplorerQtreeView(QtWidgets.QTreeView):
called when view should reset any user interface changes
made since the last reset e.g. IDA window highlighting
"""
self.collapseAll()
self.expandToDepth(0)
self.resize_columns_to_content()
def resize_columns_to_content(self):
""" reset view columns to contents """
self.header().resizeSections(QtWidgets.QHeaderView.ResizeToContents)
self.expandToDepth(0)
def map_index_to_source_item(self, model_index):
"""map proxy model index to source model item