diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-03-20 21:38:10 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-04-04 12:41:42 -0700 |
commit | a4138d46829dd96017b1af77ef42793f44b5b8d4 (patch) | |
tree | dc68cdaeb8ee3c79427582832b3b3fd173fb10bc /app/main.cpp | |
parent | d79e5011a530de5d2cf90f0399624968a82ebed0 (diff) |
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |