Something went wrong. Try again.
🎺 A desktop music player that brings your music from multiple places together
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930#include <QGuiApplication>#include <QQmlApplicationEngine>#include <QQmlContext>#include <QUrl>
#include <KLocalizedContext>#include <KLocalizedString>
int main(int argc, char* argv[]){ QGuiApplication app(argc, argv); KLocalizedString::setApplicationDomain("echoes");
QCoreApplication::setOrganizationName(QStringLiteral("sleepyfran")); QCoreApplication::setApplicationName(QStringLiteral("echoes"));
QQmlApplicationEngine engine; engine.rootContext()->setContextObject(new KLocalizedContext(&engine)); engine.rootContext()->setContextProperty(QStringLiteral("coreGreeting"), QStringLiteral("Hello, world!"));
QObject::connect( &engine, &QQmlApplicationEngine::objectCreationFailed, &app, []() { QCoreApplication::exit(-1); }, Qt::QueuedConnection);
engine.loadFromModule(QStringLiteral("me.sleepyfran.echoes"), QStringLiteral("Main"));
return app.exec();}