mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-24 04:55:47 +01:00
configure_hotkey: Make IsUsedKey() a const member function
This doesn't actually modify instance state of the dialog, so this can be made const.
This commit is contained in:
parent
2598433f9c
commit
e28a5b0d18
@ -90,7 +90,7 @@ void ConfigureHotkeys::Configure(QModelIndex index) {
|
||||
}
|
||||
}
|
||||
|
||||
bool ConfigureHotkeys::IsUsedKey(QKeySequence key_sequence) {
|
||||
bool ConfigureHotkeys::IsUsedKey(QKeySequence key_sequence) const {
|
||||
return GetUsedKeyList().contains(key_sequence);
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ signals:
|
||||
|
||||
private:
|
||||
void Configure(QModelIndex index);
|
||||
bool IsUsedKey(QKeySequence key_sequence);
|
||||
bool IsUsedKey(QKeySequence key_sequence) const;
|
||||
QList<QKeySequence> GetUsedKeyList() const;
|
||||
|
||||
std::unique_ptr<Ui::ConfigureHotkeys> ui;
|
||||
|
Loading…
Reference in New Issue
Block a user