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:
Lioncash 2019-04-09 19:35:52 -04:00
parent 2598433f9c
commit e28a5b0d18
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;