From 3c5ae32f75e799758e221c91c8452ea7eb1258e5 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 22 Mar 2019 12:53:07 -0700 Subject: homescreen: bluetooth: change constructor call for Bluetooth class 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 --- homescreen/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp index 6cf2e3d..d2568d8 100644 --- a/homescreen/src/main.cpp +++ b/homescreen/src/main.cpp @@ -125,7 +125,8 @@ int main(int argc, char *argv[]) engine.rootContext()->setContextProperty("touchArea", touchArea); 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"))); QObject *root = engine.rootObjects().first(); -- cgit 1.2.3-korg