The constructor needs the local applications QML context pointer for
the Bluetooth libqtappfw access.
Bug-AGL: SPEC-2270
Change-Id: Ib694d310656261a0a90d72a879fd33551155baa9
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
engine.rootContext()->setContextProperty("homescreenHandler", homescreenHandler);
engine.rootContext()->setContextProperty("launcher", launcher);
engine.rootContext()->setContextProperty("weather", new Weather(bindingAddress));
- engine.rootContext()->setContextProperty("bluetooth", new Bluetooth(bindingAddress));
+ engine.rootContext()->setContextProperty("bluetooth", new Bluetooth(bindingAddress, engine.rootContext()));
engine.rootContext()->setContextProperty("screenInfo", &screenInfo);
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));