From a4138d46829dd96017b1af77ef42793f44b5b8d4 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 20 Mar 2019 21:38:10 -0700 Subject: settings: bluetooth: qml: switch from qml ListModel to libqtappfw provided Switch from using single threaded and incorrect QML processing of ListViews to using models provided from libqtappfw. Also this allows removal of most of the Javascript code that processed the repective lists. Bug-AGL: SPEC-2270 SPEC-2290 Change-Id: Ib00a2f34938de4c427ec5ee6956ee3e7e3c96959 Signed-off-by: Matt Ranostay --- app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index 3b39810..8d78b74 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) qWarning() << aglversion.errorString(); } - engine.rootContext()->setContextProperty("bluetooth", new Bluetooth(bindingAddressWS)); + engine.rootContext()->setContextProperty("bluetooth", new Bluetooth(bindingAddressWS, context)); engine.rootContext()->setContextProperty(QStringLiteral("screenInfo"), &screenInfo); engine.load(QUrl(QStringLiteral("qrc:/Settings.qml"))); QObject *root = engine.rootObjects().first(); -- cgit 1.2.3-korg