30 lines
604 B
C++
30 lines
604 B
C++
#include "app/Application.h"
|
|
|
|
#include "common/SpdLogger.h"
|
|
#include "common/RecourceHelper.h"
|
|
#include "common/CrashHandler.h"
|
|
|
|
#include "ui/MainFrame.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
SpdLogger logger("logs/log.txt", 5);
|
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5,6,0))
|
|
Application::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
#endif
|
|
|
|
Application app(argc, argv);
|
|
app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
|
|
//InstallCrashHandler();
|
|
|
|
RecourceHelper::ChangeSkin("default");
|
|
|
|
int ret = 0;
|
|
|
|
MainFrame mainWindow;
|
|
mainWindow.showMaximized();
|
|
|
|
ret = app.exec();
|
|
return ret;
|
|
}
|