ui: set treeviews uniform row heights, remove root indentation

This commit is contained in:
mappu 2025-01-06 19:23:40 +13:00
parent eea2097b73
commit 697e66f9c4

View File

@ -223,6 +223,8 @@ func (self *DockerGUI) create_tree_widget(headers ...string) *qt.QTreeWidget {
tree.SetHeaderLabels(headers)
tree.SetContextMenuPolicy(qt.CustomContextMenu)
tree.OnCustomContextMenuRequested(self.show_context_menu)
tree.SetIndentation(0)
tree.SetUniformRowHeights(true) // Speedup
tree.SetSortingEnabled(true)
return tree