36 lines
843 B
C++
36 lines
843 B
C++
#include <QQuickStyle>
|
|
#include <QStandardPaths>
|
|
#include <QtNetwork>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QFile>
|
|
#include <QDesktopServices>
|
|
|
|
#include <QtCore/QUrl>
|
|
#include <QtCore/QCommandLineOption>
|
|
#include <QtCore/QCommandLineParser>
|
|
#include <QGuiApplication>
|
|
#include <QStyleHints>
|
|
#include <QScreen>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QtQml/QQmlContext>
|
|
|
|
#include "appsettings.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QQuickStyle::setStyle("Material");
|
|
|
|
qmlRegisterType<AppSettings>("com.itsblue.dasschmalter", 1, 0, "AppSettings");
|
|
|
|
QQmlApplicationEngine engine;
|
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
|
|
|
if (engine.rootObjects().isEmpty())
|
|
return -1;
|
|
|
|
return app.exec();
|
|
}
|