[PATCH] TableView - improving the column width calculation

Marcos Cardinot mcardinot at gmail.com
Tue Mar 17 14:37:24 PDT 2015


Hello folks,

I've noticed that all columns of a TableView always start with the same
width.
It ends up cutting the header (mainly when I'm using another language -
with bigger strings).
It seems that it was reported already:
http://trac.subsurface-divelog.org/ticket/788

Another point is that even that most (or all) tables have the 'remove
button' at the section 0,
the method defaultColumnWidth should not assume that it will always be true.

So, this patch will consider the title width of each section, instead of
using a static width.

All the best,
Marcos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150317/10c130fa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-TableView-improving-the-column-width-calculation.patch
Type: text/x-patch
Size: 2092 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150317/10c130fa/attachment-0001.bin>


More information about the subsurface mailing list