This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
qcookieclicker/sources/main.cpp

21 lines
495 B
C++
Raw Normal View History

2019-02-01 15:10:30 +01:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "headers/appsettings.h"
2019-02-01 15:10:30 +01:00
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
qmlRegisterType<AppSettings>("com.itsblue.qcookieclicker", 1, 0, "AppSettings");
2019-02-01 15:10:30 +01:00
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}