[PATCH] TableView - improving the column width calculation

Lubomir I. Ivanov neolit123 at gmail.com
Tue Mar 17 17:45:04 PDT 2015


> - 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/20150318/82de6951/attachment.html>


More information about the subsurface mailing list