blob: dc4bbb2ce446668f63adbe867183c4ddef62ef17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <QAction>
#include "globals.h"
Globals *Globals::mInstance = nullptr;
Globals *Globals::instance(){
if(!mInstance){
mInstance = new Globals;
}
return mInstance;
}
void Globals::addAction(QAction *a){
mActions.insert(a->data().toInt(), a);
}
QAction *Globals::action(int actionType){
return mActions.value(actionType);
}
Globals::Globals() {}
|