summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormerry <git@mary.rs>2022-04-02 14:52:03 +0200
committermerry <git@mary.rs>2022-04-02 18:17:13 +0200
commit8c57de16055873c8e2781213c89408228c689461 (patch)
tree8c54a88f7aa8bb226247d23512d2a916e24d0bb3
parentMerge pull request #8128 from FernandoS27/gc-fixes (diff)
downloadyuzu-8c57de16055873c8e2781213c89408228c689461.tar
yuzu-8c57de16055873c8e2781213c89408228c689461.tar.gz
yuzu-8c57de16055873c8e2781213c89408228c689461.tar.bz2
yuzu-8c57de16055873c8e2781213c89408228c689461.tar.lz
yuzu-8c57de16055873c8e2781213c89408228c689461.tar.xz
yuzu-8c57de16055873c8e2781213c89408228c689461.tar.zst
yuzu-8c57de16055873c8e2781213c89408228c689461.zip
-rw-r--r--src/yuzu/configuration/configure_hotkeys.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp
index 53e629a5e..6679e9c53 100644
--- a/src/yuzu/configuration/configure_hotkeys.cpp
+++ b/src/yuzu/configuration/configure_hotkeys.cpp
@@ -35,8 +35,9 @@ ConfigureHotkeys::ConfigureHotkeys(Core::HID::HIDCore& hid_core, QWidget* parent
ui->hotkey_list->setContextMenuPolicy(Qt::CustomContextMenu);
ui->hotkey_list->setModel(model);
- ui->hotkey_list->setColumnWidth(name_column, 200);
- ui->hotkey_list->resizeColumnToContents(hotkey_column);
+ ui->hotkey_list->header()->setStretchLastSection(false);
+ ui->hotkey_list->header()->setSectionResizeMode(name_column, QHeaderView::ResizeMode::Stretch);
+ ui->hotkey_list->header()->setMinimumSectionSize(150);
connect(ui->button_restore_defaults, &QPushButton::clicked, this,
&ConfigureHotkeys::RestoreDefaults);
@@ -76,8 +77,8 @@ void ConfigureHotkeys::Populate(const HotkeyRegistry& registry) {
}
ui->hotkey_list->expandAll();
- ui->hotkey_list->resizeColumnToContents(name_column);
ui->hotkey_list->resizeColumnToContents(hotkey_column);
+ ui->hotkey_list->resizeColumnToContents(controller_column);
}
void ConfigureHotkeys::changeEvent(QEvent* event) {