diff options
| author | 2019-04-09 19:35:52 -0400 | |
|---|---|---|
| committer | 2019-04-09 19:35:54 -0400 | |
| commit | e28a5b0d18be203fc4fcb8688a13a74c24fcb9c2 (patch) | |
| tree | 105c5a60d8bd1695a3774dc8e75e86c15db93604 /src | |
| parent | Merge pull request #2354 from lioncash/header (diff) | |
| download | yuzu-e28a5b0d18be203fc4fcb8688a13a74c24fcb9c2.tar.gz yuzu-e28a5b0d18be203fc4fcb8688a13a74c24fcb9c2.tar.xz yuzu-e28a5b0d18be203fc4fcb8688a13a74c24fcb9c2.zip | |
configure_hotkey: Make IsUsedKey() a const member function
This doesn't actually modify instance state of the dialog, so this can
be made const.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_hotkeys.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_hotkeys.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp index bfb562535..55d23d329 100644 --- a/src/yuzu/configuration/configure_hotkeys.cpp +++ b/src/yuzu/configuration/configure_hotkeys.cpp | |||
| @@ -90,7 +90,7 @@ void ConfigureHotkeys::Configure(QModelIndex index) { | |||
| 90 | } | 90 | } |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | bool ConfigureHotkeys::IsUsedKey(QKeySequence key_sequence) { | 93 | bool ConfigureHotkeys::IsUsedKey(QKeySequence key_sequence) const { |
| 94 | return GetUsedKeyList().contains(key_sequence); | 94 | return GetUsedKeyList().contains(key_sequence); |
| 95 | } | 95 | } |
| 96 | 96 | ||
diff --git a/src/yuzu/configuration/configure_hotkeys.h b/src/yuzu/configuration/configure_hotkeys.h index cd203aad6..e3766df55 100644 --- a/src/yuzu/configuration/configure_hotkeys.h +++ b/src/yuzu/configuration/configure_hotkeys.h | |||
| @@ -39,7 +39,7 @@ signals: | |||
| 39 | 39 | ||
| 40 | private: | 40 | private: |
| 41 | void Configure(QModelIndex index); | 41 | void Configure(QModelIndex index); |
| 42 | bool IsUsedKey(QKeySequence key_sequence); | 42 | bool IsUsedKey(QKeySequence key_sequence) const; |
| 43 | QList<QKeySequence> GetUsedKeyList() const; | 43 | QList<QKeySequence> GetUsedKeyList() const; |
| 44 | 44 | ||
| 45 | std::unique_ptr<Ui::ConfigureHotkeys> ui; | 45 | std::unique_ptr<Ui::ConfigureHotkeys> ui; |