2021-03-04 16:26:51 +00:00
|
|
|
#define QT_DEBUG
|
|
|
|
#define QT_QML_DEBUG
|
|
|
|
#include <QtQuick>
|
|
|
|
//#endif
|
|
|
|
|
2021-02-16 17:01:17 +00:00
|
|
|
#include <QDebug>
|
|
|
|
#include <QQmlApplicationEngine>
|
2020-10-08 01:00:08 +00:00
|
|
|
#include <QGuiApplication>
|
2021-02-16 17:01:17 +00:00
|
|
|
#include <QString>
|
|
|
|
|
2020-10-25 18:58:02 +00:00
|
|
|
#include <JellyfinQt/jellyfin.h>
|
2020-10-08 01:00:08 +00:00
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
QGuiApplication app(argc, argv);
|
2021-02-16 17:01:17 +00:00
|
|
|
app.setApplicationDisplayName(QStringLiteral("Sailfin QtQuick"));
|
|
|
|
|
|
|
|
qDebug() << "Creating engine";
|
|
|
|
QQmlApplicationEngine engine;
|
|
|
|
|
|
|
|
qDebug() << "Registering types";
|
|
|
|
Jellyfin::registerTypes();
|
2020-10-08 01:00:08 +00:00
|
|
|
|
2021-02-16 17:01:17 +00:00
|
|
|
qDebug() << "Loading file";
|
|
|
|
engine.load(QStringLiteral("qrc:/qml/main.qml"));
|
|
|
|
qDebug() << "Entering event loop";
|
2020-10-08 01:00:08 +00:00
|
|
|
return app.exec();
|
|
|
|
}
|