From 697e66f9c4601c621555e095820b126eed022ae5 Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 6 Jan 2025 19:23:40 +1300 Subject: [PATCH] ui: set treeviews uniform row heights, remove root indentation --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 6439346..3d9ad9b 100644 --- a/main.go +++ b/main.go @@ -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