mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-25 10:25:17 +00:00
28 lines
630 B
C++
28 lines
630 B
C++
#define QT_DEBUG
|
|
#define QT_QML_DEBUG
|
|
#include <QtQuick>
|
|
//#endif
|
|
|
|
#include <QDebug>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QGuiApplication>
|
|
#include <QString>
|
|
|
|
#include <JellyfinQt/jellyfin.h>
|
|
|
|
int main(int argc, char** argv) {
|
|
QGuiApplication app(argc, argv);
|
|
app.setApplicationDisplayName(QStringLiteral("Sailfin QtQuick"));
|
|
|
|
qDebug() << "Creating engine";
|
|
QQmlApplicationEngine engine;
|
|
|
|
qDebug() << "Registering types";
|
|
Jellyfin::registerTypes();
|
|
|
|
qDebug() << "Loading file";
|
|
engine.load(QStringLiteral("qrc:/qml/main.qml"));
|
|
qDebug() << "Entering event loop";
|
|
return app.exec();
|
|
}
|