[PATCH] TableView - improving the column width calculation

Marcos Cardinot mcardinot at gmail.com
Tue Mar 17 18:05:31 PDT 2015


Hi lubomir,

could you check if it's fine now?

thanks a lot,
Marcos

2015-03-17 21:45 GMT-03:00 Lubomir I. Ivanov <neolit123 at gmail.com>:

> > - return col == CylindersModel::REMOVE ? metrics.rm_col_width :
> metrics.col_width;
> > + QString text = ui.tableView->model()->headerData(col,
> Qt::Horizontal).toString();
> > + if (text.isEmpty()) { // it might be an icon
> > + return metrics.rm_col_width;
> > + }
>
> no need for the braces again.
> could you resend, please?
>
> thanks
> lubomir
> --
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150317/2aef1024/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-TableView-improving-the-column-width-calculation.patch
Type: text/x-patch
Size: 2045 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150317/2aef1024/attachment.bin>


More information about the subsurface mailing list