aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-22 12:53:07 -0700
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-04-05 15:42:01 +0900
commit3c5ae32f75e799758e221c91c8452ea7eb1258e5 (patch)
tree3bac0b50229d69a78f21b0fee1689d70bbc3c89a
parent1d28ccd50f6da6bfeae90c9507d45af2505780b6 (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.cpp3
1 files changed, 2 insertions, 1 deletions
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();