20 #include "crashCatcher.h" |
20 #include "crashCatcher.h" |
21 #include "documentmanager.h" |
21 #include "documentmanager.h" |
22 #include "mainwindow.h" |
22 #include "mainwindow.h" |
23 #include "generics/reverse.h" |
23 #include "generics/reverse.h" |
24 |
24 |
25 Configuration* config = nullptr; |
|
26 |
|
27 int main (int argc, char* argv[]) |
25 int main (int argc, char* argv[]) |
28 { |
26 { |
29 QApplication app (argc, argv); |
27 QApplication app (argc, argv); |
30 app.setOrganizationName (APPNAME); |
28 app.setOrganizationName (APPNAME); |
31 app.setApplicationName (APPNAME); |
29 app.setApplicationName (APPNAME); |
33 qRegisterMetaType<Libraries>("Libraries"); |
31 qRegisterMetaType<Libraries>("Libraries"); |
34 qRegisterMetaTypeStreamOperators<Library>("Library"); |
32 qRegisterMetaTypeStreamOperators<Library>("Library"); |
35 qRegisterMetaTypeStreamOperators<Libraries>("Libraries"); |
33 qRegisterMetaTypeStreamOperators<Libraries>("Libraries"); |
36 qRegisterMetaType<Vertex>("Vertex"); |
34 qRegisterMetaType<Vertex>("Vertex"); |
37 qRegisterMetaTypeStreamOperators<Vertex>("Vertex"); |
35 qRegisterMetaTypeStreamOperators<Vertex>("Vertex"); |
38 |
|
39 config = &::singleton<Configuration>(); |
|
40 |
|
41 initializeCrashHandler(); |
36 initializeCrashHandler(); |
42 LDColor::initColors(); |
37 LDColor::initColors(); |
43 MainWindow* mainWindow = new MainWindow; |
38 MainWindow* mainWindow = new MainWindow; |
44 mainWindow->show(); |
39 mainWindow->show(); |
45 |
40 |