1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 12:57:45 +00:00
astra/launcher/tablet/src/tabletinterface.cpp

15 lines
453 B
C++
Raw Normal View History

#include "tabletinterface.h"
#include <QQuickView>
#include <QQmlContext>
TabletInterface::TabletInterface(LauncherCore &core) {
qmlRegisterType<ProfileSettings>("Astra", 1, 0, "ProfileSettings");
qmlRegisterType<LoginInformation>("Astra", 1, 0, "LoginInformation");
applicationEngine = new QQmlApplicationEngine();
applicationEngine->rootContext()->setContextProperty("core", &core);
applicationEngine->load("qrc:/main.qml");
}