homescreen: bluetooth: change constructor call for Bluetooth class 12/20912/1 guppy 7.0.1 7.0.2 7.0.3 7.0.4 guppy/7.0.1 guppy/7.0.2 guppy/7.0.3 guppy/7.0.4 guppy_7.0.1 guppy_7.0.2 guppy_7.0.3 guppy_7.0.4
authorMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 22 Mar 2019 19:53:07 +0000 (12:53 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 4 Apr 2019 19:10:38 +0000 (12:10 -0700)
The constructor needs the local applications QML context pointer for
the Bluetooth libqtappfw access.

Bug-AGL: SPEC-2270 SPEC-2290
Change-Id: Ib694d310656261a0a90d72a879fd33551155baa9
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
homescreen/src/main.cpp

index 939577f..5f283fb 100644 (file)
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
     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")));