X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=app%2Fmain.cpp;h=fa7fe614d615d7599ed754107496cd1aba392ef8;hb=62307df679bcd1a69874bb66439cb6451e9ce29b;hp=dc9d250acb99ad095900313c8f79f369b9aaac45;hpb=21ac475cd8621747169d11c58add5a53a50986a8;p=apps%2Fmediaplayer.git diff --git a/app/main.cpp b/app/main.cpp index dc9d250..fa7fe61 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include int main(int argc, char *argv[]) @@ -96,6 +97,7 @@ int main(int argc, char *argv[]) }); context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress)); + context->setContextProperty("bluetooth_connection", new Bluetooth(bindingAddress)); engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml"))); QObject *root = engine.rootObjects().first(); QQuickWindow *window = qobject_cast(root);