projects
/
ffpreview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaabd4c
)
* Resize columns (except first) in thumbnail manager tree view to accommodate their...
author
Urban Wallasch
<urban.wallasch@freenet.de>
Sat, 22 May 2021 10:08:03 +0000
(12:08 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Sat, 22 May 2021 10:08:03 +0000
(12:08 +0200)
ffpreview.py
patch
|
blob
|
history
diff --git
a/ffpreview.py
b/ffpreview.py
index e372c3973d78a78fb9c65538e98487920c5db902..f8279ef399265893fea4230a3b79127509db25a7 100755
(executable)
--- a/
ffpreview.py
+++ b/
ffpreview.py
@@
-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():