Compare commits

...

2 Commits

Author SHA1 Message Date
Reg Tiangha 703d2b4dd9
Merge 1e925bd5ea into 6e7cc65ec4 2024-05-05 04:37:59 +00:00
Reg Tiangha 1e925bd5ea
game_list.cpp: Resize columns to fit the size of their contents 2024-05-04 22:19:36 -06:00
1 changed files with 6 additions and 0 deletions

View File

@ -475,6 +475,12 @@ void GameList::DonePopulating(const QStringList& watch_list) {
item_model->sort(tree_view->header()->sortIndicatorSection(),
tree_view->header()->sortIndicatorOrder());
// resize all columns except for Name to fit their contents
for (int i = 1; i < COLUMN_COUNT; i++) {
tree_view->resizeColumnToContents(i);
}
tree_view->header()->setStretchLastSection(true);
emit PopulatingCompleted();
}