Add Restore Defaults and Clear options to hotkeys

This commit is contained in:
Kewlan
2020-04-23 13:31:16 +02:00
parent e84f82a028
commit a19c6317ef
5 changed files with 116 additions and 18 deletions

View File

@ -35,7 +35,11 @@ private:
void RetranslateUI();
void Configure(QModelIndex index);
bool IsUsedKey(QKeySequence key_sequence) const;
std::pair<bool, QString> IsUsedKey(QKeySequence key_sequence) const;
void RestoreDefaults();
void ClearAll();
void PopupContextMenu(const QPoint& menu_location);
std::unique_ptr<Ui::ConfigureHotkeys> ui;