From 023304d9bf1f2bb0db5f181651a31fe740412181 Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Sat, 4 May 2024 22:19:36 -0600 Subject: [PATCH] game_list.cpp: Resize columns to fit the size of their contents --- src/citra_qt/game_list.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index 59f5d1457..cbe66ec5d 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -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(); }