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 <QQmlContext>
2022-08-15 11:14:37 -04:00
#include <QQuickView>
2022-08-15 11:14:37 -04:00
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");
}