* Resize columns (except first) in thumbnail manager tree view to accommodate their...
authorUrban Wallasch <urban.wallasch@freenet.de>
Sat, 22 May 2021 10:08:03 +0000 (12:08 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Sat, 22 May 2021 10:08:03 +0000 (12:08 +0200)
ffpreview.py

index e372c3973d78a78fb9c65538e98487920c5db902..f8279ef399265893fea4230a3b79127509db25a7 100755 (executable)
@@ -671,6 +671,8 @@ class tmDialog(QDialog):
         hint = self.tree_widget.sizeHintForColumn(0)
         mwid = int(self.width() / 8 * 5)
         self.tree_widget.setColumnWidth(0, mwid if hint > mwid else hint)
+        for col in range(1, self.tree_widget.columnCount()):
+            self.tree_widget.resizeColumnToContents(col)
 
     def accept(self):
         for item in self.tree_widget.selectedItems():