mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-12 18:09:57 +01:00
game_list.cpp: Resize columns to fit the size of their contents
This commit is contained in:
parent
706c5a759b
commit
023304d9bf
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user