-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (22 loc) · 798 Bytes
/
main.cpp
File metadata and controls
28 lines (22 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#if defined(NTSHENGN_OS_WINDOWS) && defined(NTSHENGN_RELEASE)
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
#endif
#include "src/common/global_info.h"
#include "src/widgets/project_window.h"
#include "src/widgets/main_window.h"
#include <QApplication>
#include <memory>
int main() {
int argc = 0;
std::unique_ptr<QApplication> application = std::make_unique<QApplication>(argc, nullptr);
application->setStyle("Fusion");
GlobalInfo globalInfo;
globalInfo.version = "0.2.5";
globalInfo.devicePixelRatio = application->devicePixelRatio();
globalInfo.actionUndoStack = std::make_unique<QUndoStack>();
globalInfo.selectionUndoStack = std::make_unique<QUndoStack>();
ProjectWindow projectWindow(globalInfo);
projectWindow.show();
application->exec();
return 0;
}