mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Book list: Do not let the default layout have any column wider than 350 pixels
This commit is contained in:
parent
78e4e41b7e
commit
129cd02292
@ -292,7 +292,8 @@ class BooksView(QTableView): # {{{
|
|||||||
old_state['column_positions'][name] = i
|
old_state['column_positions'][name] = i
|
||||||
if name != 'ondevice':
|
if name != 'ondevice':
|
||||||
old_state['column_sizes'][name] = \
|
old_state['column_sizes'][name] = \
|
||||||
max(self.sizeHintForColumn(i), h.sectionSizeHint(i))
|
min(350, max(self.sizeHintForColumn(i),
|
||||||
|
h.sectionSizeHint(i)))
|
||||||
if name == 'timestamp':
|
if name == 'timestamp':
|
||||||
old_state['column_sizes'][name] += 12
|
old_state['column_sizes'][name] += 12
|
||||||
return old_state
|
return old_state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user