From c0e3cb70d4c9ddd70ce9a6a74152820293b227d9 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Thu, 3 Jan 2019 01:52:28 -0500 Subject: Pause radio on play Having the mediaplayer application pause the radio was requested as a demo behavior improvement. Use the new radio binding support in libqtappfw to do so. Change-Id: I6b2aa6c2c03a2485dfb05406ec450c126995440c Signed-off-by: Scott Murray --- app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index 40dec24..64f6746 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include @@ -99,6 +100,7 @@ int main(int argc, char *argv[]) }); context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress, context)); + context->setContextProperty("radio", new Radio(bindingAddress, context)); context->setContextProperty(QStringLiteral("screenInfo"), &screenInfo); engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml"))); -- cgit 1.2.3-korg