mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Format code using clang-format
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
#include <QString>
|
||||
#include <QMap>
|
||||
|
||||
|
||||
class QAction;
|
||||
|
||||
//QAction: used setData() and data() for storing (userData) an identifier for each QAction. This value is ussed in QSettings
|
||||
@ -15,21 +14,22 @@ class ShortcutsManager
|
||||
{
|
||||
private:
|
||||
ShortcutsManager();
|
||||
QMap<QString,QKeySequence> defaultShorcuts;
|
||||
QMap<QString, QKeySequence> defaultShorcuts;
|
||||
QList<QAction *> actions; //all actions registered, used for checking conflicts
|
||||
|
||||
void initDefaultShorcuts();
|
||||
|
||||
public:
|
||||
static ShortcutsManager & getShortcutsManager()
|
||||
static ShortcutsManager &getShortcutsManager()
|
||||
{
|
||||
static ShortcutsManager manager;
|
||||
return manager;
|
||||
}
|
||||
|
||||
void resetToDefaults();
|
||||
QString getShortcut(const QString & name);
|
||||
void saveShortcut(QAction * action);
|
||||
void registerActions(const QList<QAction *> & actions);
|
||||
QString getShortcut(const QString &name);
|
||||
void saveShortcut(QAction *action);
|
||||
void registerActions(const QList<QAction *> &actions);
|
||||
bool checkConflicts(const QKeySequence &shortcut, const QAction *dest);
|
||||
};
|
||||
|
||||
@ -83,7 +83,6 @@ public:
|
||||
#define SAVE_COVERS_TO_ACTION_YL "SAVE_COVERS_TO_ACTION_YL"
|
||||
//COMMANDS YACReaderLibrary
|
||||
|
||||
|
||||
//ACTION NAMES YACReader
|
||||
#define OPEN_ACTION_Y "OPEN_ACTION_Y"
|
||||
#define OPEN_FOLDER_ACTION_Y "OPEN_FOLDER_ACTION_Y"
|
||||
|
Reference in New Issue
Block a user