add FernschreiberUtils to qml context (unused for now)

This commit is contained in:
John Gibbon 2020-11-17 16:45:54 +01:00
parent 59304527d2
commit 1486e49f1c

View file

@ -39,6 +39,7 @@
#include "processlauncher.h"
#include "stickermanager.h"
#include "tgsplugin.h"
#include "fernschreiberutils.h"
Q_IMPORT_PLUGIN(TgsIOPlugin)
@ -60,6 +61,9 @@ int main(int argc, char *argv[])
context->setContextProperty("tdLibWrapper", tdLibWrapper);
qmlRegisterUncreatableType<TDLibWrapper>(uri, 1, 0, "TelegramAPI", QString());
FernschreiberUtils *fernschreiberUtils = new FernschreiberUtils(view.data());
context->setContextProperty("fernschreiberUtils", fernschreiberUtils);
DBusAdaptor *dBusAdaptor = tdLibWrapper->getDBusAdaptor();
context->setContextProperty("dBusAdaptor", dBusAdaptor);