Add Restore Defaults and Clear options to hotkeys

This commit is contained in:
Kewlan 2020-04-23 13:31:16 +02:00
parent 4df0d483c4
commit 37b1427ea9
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;