Qt: Implement "File Title" column and toggling in game list

This commit is contained in:
Connor McLaughlin
2020-03-02 11:08:25 +10:00
parent c8954a3089
commit 5c0660744a
3 changed files with 57 additions and 23 deletions

View File

@ -46,6 +46,12 @@ void ResizeColumnsForTableView(QTableView* view, const std::initializer_list<int
int column_index = 0;
for (const int spec_width : widths)
{
if (view->isColumnHidden(column_index))
{
column_index++;
continue;
}
const int width = spec_width < 0 ? flex_width : spec_width;
view->setColumnWidth(column_index, width);
column_index++;