ui: set treeviews uniform row heights, remove root indentation
This commit is contained in:
parent
eea2097b73
commit
697e66f9c4
2
main.go
2
main.go
@ -223,6 +223,8 @@ func (self *DockerGUI) create_tree_widget(headers ...string) *qt.QTreeWidget {
|
|||||||
tree.SetHeaderLabels(headers)
|
tree.SetHeaderLabels(headers)
|
||||||
tree.SetContextMenuPolicy(qt.CustomContextMenu)
|
tree.SetContextMenuPolicy(qt.CustomContextMenu)
|
||||||
tree.OnCustomContextMenuRequested(self.show_context_menu)
|
tree.OnCustomContextMenuRequested(self.show_context_menu)
|
||||||
|
tree.SetIndentation(0)
|
||||||
|
tree.SetUniformRowHeights(true) // Speedup
|
||||||
tree.SetSortingEnabled(true)
|
tree.SetSortingEnabled(true)
|
||||||
|
|
||||||
return tree
|
return tree
|
||||||
|
Loading…
x
Reference in New Issue
Block a user