summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-22 12:53:07 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-03-22 13:01:48 -0700
commit963cc6202056d6379c2de7caaa6e1be1ea29046c (patch)
treef96ef9fd64bb641f1d2ec8c77196d2d72be14942
parent2549937d94e754b6e958a3567513dac081d102b5 (diff)
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 <matt.ranostay@konsulko.com>
-rw-r--r--homescreen/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index 939577f..5f283fb 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -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")));