#ifndef SHORTCUTMANAGER_H #define SHORTCUTMANAGER_H #include #include #include class QAction; struct EnvironmentShortcut { QString name; QString fullPath; QString shortcut; QAction* action; }; using PEnvironmentShortcut = std::shared_ptr; class ShortcutManager : public QObject { Q_OBJECT public: explicit ShortcutManager(QObject *parent = nullptr); void load(); void save(); void setShortcuts(QList shortcuts); void applyTo(QList actions); void applyTo(QAction* action); signals: private: private: QMap mShortcuts; }; using PShortcutManager = std::shared_ptr; #endif // SHORTCUTMANAGER_H