mirror of
https://github.com/Lime3DS/Lime3DS
synced 2025-01-09 13:43:27 +00:00
game_list.cpp: Resize columns to fit the size of their contents
This commit is contained in:
parent
1dd95b4e01
commit
ae845de352
1 changed files with 6 additions and 0 deletions
|
@ -475,6 +475,12 @@ void GameList::DonePopulating(const QStringList& watch_list) {
|
||||||
item_model->sort(tree_view->header()->sortIndicatorSection(),
|
item_model->sort(tree_view->header()->sortIndicatorSection(),
|
||||||
tree_view->header()->sortIndicatorOrder());
|
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();
|
emit PopulatingCompleted();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue