From 71cbaf1fd33f6848f77fe0ee53a418dbb7630f3a Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Thu, 3 Jan 2019 01:41:36 -0500 Subject: Switch to using libqtappfw Pull in the libqtappfw library to use its radio binding support, in order to have playback state in the UI reflect the binding state (e.g. handle the radio binding tuning being changed via steering wheel events). Bug-AGL: SPEC-3041 Change-Id: Icb6729029d39d9da0ef62dfe6c598d6ffcef43cd Signed-off-by: Scott Murray --- app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index 319e1e7..7cc7a10 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include "PresetDataObject.h" #define APP_DATA_PRESETS_PATH "/app-data/radio/presets.conf" @@ -131,6 +132,8 @@ int main(int argc, char *argv[]) qwm->activateWindow(graphic_role); }); + context->setContextProperty("radio", new Radio(bindingAddress, context)); + engine.load(QUrl(QStringLiteral("qrc:/Radio.qml"))); QObject *root = engine.rootObjects().first(); QQuickWindow *window = qobject_cast(root); -- cgit 1.2.3-korg