28 lines
551 B
C++
28 lines
551 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);
|
|
|
|
Application::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
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;
|
|
}
|