summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-04-02 21:35:31 +0200
committerGitHub <noreply@github.com>2022-04-02 21:35:31 +0200
commit1e47252214d956d049b0726d015576877e682fd1 (patch)
tree3dee30a71b09eeec1dcf6bc9e2ce5ac71d5161ac
parentMerge pull request #8140 from merryhime/per-game-addon-columns (diff)
parentconfigure_hotkeys: Make first column stretch and not last column (diff)
downloadyuzu-1e47252214d956d049b0726d015576877e682fd1.tar
yuzu-1e47252214d956d049b0726d015576877e682fd1.tar.gz
yuzu-1e47252214d956d049b0726d015576877e682fd1.tar.bz2
yuzu-1e47252214d956d049b0726d015576877e682fd1.tar.lz
yuzu-1e47252214d956d049b0726d015576877e682fd1.tar.xz
yuzu-1e47252214d956d049b0726d015576877e682fd1.tar.zst
yuzu-1e47252214d956d049b0726d015576877e682fd1.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) {