mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
Expand one layer by default to make IDA navigation easier.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user