diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-25 09:53:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-25 10:08:07 +0200 |
commit | c03fb00ac142e27ba8d7e7cc1dde0539375b7d96 (patch) | |
tree | cc1a5ee67e9583368232dc44d5715a9e569c7ef7 | |
parent | sequence_dialog: Reorganize the constructor (diff) | |
download | yuzu-c03fb00ac142e27ba8d7e7cc1dde0539375b7d96.tar yuzu-c03fb00ac142e27ba8d7e7cc1dde0539375b7d96.tar.gz yuzu-c03fb00ac142e27ba8d7e7cc1dde0539375b7d96.tar.bz2 yuzu-c03fb00ac142e27ba8d7e7cc1dde0539375b7d96.tar.lz yuzu-c03fb00ac142e27ba8d7e7cc1dde0539375b7d96.tar.xz yuzu-c03fb00ac142e27ba8d7e7cc1dde0539375b7d96.tar.zst yuzu-c03fb00ac142e27ba8d7e7cc1dde0539375b7d96.zip |
-rw-r--r-- | src/yuzu/configuration/configure_dialog.cpp | 3 | ||||
-rw-r--r-- | src/yuzu/configuration/configure_hotkeys.cpp | 5 | ||||
-rw-r--r-- | src/yuzu/configuration/configure_hotkeys.h | 5 |
3 files changed, 0 insertions, 13 deletions
diff --git a/src/yuzu/configuration/configure_dialog.cpp b/src/yuzu/configuration/configure_dialog.cpp index 32c05b797..8086f9d6b 100644 --- a/src/yuzu/configuration/configure_dialog.cpp +++ b/src/yuzu/configuration/configure_dialog.cpp @@ -25,9 +25,6 @@ ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry) adjustSize(); ui->selectorList->setCurrentRow(0); - - // Synchronise lists upon initialisation - ui->hotkeysTab->EmitHotkeysChanged(); } ConfigureDialog::~ConfigureDialog() = default; diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp index a7a8752e5..9155da4e8 100644 --- a/src/yuzu/configuration/configure_hotkeys.cpp +++ b/src/yuzu/configuration/configure_hotkeys.cpp @@ -31,10 +31,6 @@ ConfigureHotkeys::ConfigureHotkeys(QWidget* parent) ConfigureHotkeys::~ConfigureHotkeys() = default; -void ConfigureHotkeys::EmitHotkeysChanged() { - emit HotkeysChanged(GetUsedKeyList()); -} - QList<QKeySequence> ConfigureHotkeys::GetUsedKeyList() const { QList<QKeySequence> list; for (int r = 0; r < model->rowCount(); r++) { @@ -87,7 +83,6 @@ void ConfigureHotkeys::Configure(QModelIndex index) { tr("You're using a key that's already bound.")); } else { model->setData(index, key_sequence.toString(QKeySequence::NativeText)); - EmitHotkeysChanged(); } } diff --git a/src/yuzu/configuration/configure_hotkeys.h b/src/yuzu/configuration/configure_hotkeys.h index 73fb8a175..1bbe64114 100644 --- a/src/yuzu/configuration/configure_hotkeys.h +++ b/src/yuzu/configuration/configure_hotkeys.h @@ -24,8 +24,6 @@ public: void applyConfiguration(HotkeyRegistry& registry); void retranslateUi(); - void EmitHotkeysChanged(); - /** * Populates the hotkey list widget using data from the provided registry. * Called everytime the Configure dialog is opened. @@ -33,9 +31,6 @@ public: */ void Populate(const HotkeyRegistry& registry); -signals: - void HotkeysChanged(QList<QKeySequence> new_key_list); - private: void Configure(QModelIndex index); bool IsUsedKey(QKeySequence key_sequence) const; |