mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-22 01:54:46 -05:00
23 lines
568 B
C++
23 lines
568 B
C++
#include "mainwindow.h"
|
|
#include "loadingscreen.h"
|
|
|
|
#include <QApplication>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
|
QCoreApplication::setAttribute(Qt::AA_UseStyleSheetPropagationInWidgetStyles, true);
|
|
|
|
QApplication a(argc, argv);
|
|
a.setStyle("fusion");
|
|
|
|
porysplash = new PorymapLoadingScreen;
|
|
|
|
QObject::connect(&a, &QCoreApplication::aboutToQuit, [=]() { delete porysplash; });
|
|
|
|
MainWindow w(nullptr);
|
|
w.initialize();
|
|
|
|
return a.exec();
|
|
}
|