summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-01-03 01:52:28 -0500
committerScott Murray <scott.murray@konsulko.com>2019-01-03 06:50:15 +0000
commitc0e3cb70d4c9ddd70ce9a6a74152820293b227d9 (patch)
tree7f0a3ed8773c8babbad28cbc9c7ac2d7b6b9dbd9 /app/main.cpp
parent91bbf6d2af85e1a440a889c29ebd8e1c34b17b64 (diff)
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 <scott.murray@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp2
1 files changed, 2 insertions, 0 deletions
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 <libhomescreen.hpp>
#include <qlibwindowmanager.h>
#include <mediaplayer.h>
+#include <radio.h>
#include <unistd.h>
@@ -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")));