summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-04-02 21:35:26 +0200
committerGitHub <noreply@github.com>2022-04-02 21:35:26 +0200
commit0bcbe3a7038172580467f7861cef1c0cd77ebf47 (patch)
treed1df7f31e59e41513fdaef3c6921baf4a4d30d3c
parentMerge pull request #8142 from Tachi107/typos (diff)
parentconfigure_per_game_addons: Set tree view minimum section size to 150px (diff)
downloadyuzu-0bcbe3a7038172580467f7861cef1c0cd77ebf47.tar
yuzu-0bcbe3a7038172580467f7861cef1c0cd77ebf47.tar.gz
yuzu-0bcbe3a7038172580467f7861cef1c0cd77ebf47.tar.bz2
yuzu-0bcbe3a7038172580467f7861cef1c0cd77ebf47.tar.lz
yuzu-0bcbe3a7038172580467f7861cef1c0cd77ebf47.tar.xz
yuzu-0bcbe3a7038172580467f7861cef1c0cd77ebf47.tar.zst
yuzu-0bcbe3a7038172580467f7861cef1c0cd77ebf47.zip
-rw-r--r--src/yuzu/configuration/configure_per_game_addons.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_per_game_addons.cpp b/src/yuzu/configuration/configure_per_game_addons.cpp
index 21e51d749..7893a85bb 100644
--- a/src/yuzu/configuration/configure_per_game_addons.cpp
+++ b/src/yuzu/configuration/configure_per_game_addons.cpp
@@ -47,6 +47,10 @@ ConfigurePerGameAddons::ConfigurePerGameAddons(Core::System& system_, QWidget* p
item_model->setHeaderData(0, Qt::Horizontal, tr("Patch Name"));
item_model->setHeaderData(1, Qt::Horizontal, tr("Version"));
+ tree_view->header()->setStretchLastSection(false);
+ tree_view->header()->setSectionResizeMode(0, QHeaderView::ResizeMode::Stretch);
+ tree_view->header()->setMinimumSectionSize(150);
+
// We must register all custom types with the Qt Automoc system so that we are able to use it
// with signals/slots. In this case, QList falls under the umbrella of custom types.
qRegisterMetaType<QList<QStandardItem*>>("QList<QStandardItem*>");
@@ -138,5 +142,5 @@ void ConfigurePerGameAddons::LoadConfiguration() {
item_model->appendRow(list_items.back());
}
- tree_view->setColumnWidth(0, 5 * tree_view->width() / 16);
+ tree_view->resizeColumnToContents(1);
}