customizable keyboard shortcuts

This commit is contained in:
itsmattkc
2018-07-21 14:21:57 +01:00
parent 43dc221438
commit c340901419
4 changed files with 137 additions and 24 deletions
+14
View File
@@ -2,6 +2,8 @@
#define PREFERENCESDIALOG_H
#include <QDialog>
#include <QKeySequenceEdit>
class QMenuBar;
namespace Ui {
class PreferencesDialog;
@@ -15,8 +17,20 @@ public:
explicit PreferencesDialog(QWidget *parent = 0);
~PreferencesDialog();
void setup_kbd_shortcuts(QMenuBar* menu);
private:
Ui::PreferencesDialog *ui;
};
class KeySequenceEditor : public QKeySequenceEdit {
Q_OBJECT
public:
KeySequenceEditor(QAction* a);
private slots:
void set_action_shortcut();
private:
QAction* action;
};
#endif // PREFERENCESDIALOG_H