mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 04:57:44 +00:00
14 lines
453 B
C++
14 lines
453 B
C++
#include "tabletinterface.h"
|
|
|
|
#include <QQmlContext>
|
|
#include <QQuickView>
|
|
|
|
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");
|
|
}
|