summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-01-15 10:53:13 -0500
committerScott Murray <scott.murray@konsulko.com>2020-01-17 16:50:05 +0000
commit59d23c161921890425e8d2e91441381d0fef0a32 (patch)
tree3a89fa7e2afd3d7314379015dcd48b3456d53a43 /app/main.cpp
parentac85ae4ce0a2e5c3bd433db2882422a86539b203 (diff)
Add info page selected by steering wheel eventhalibut_8.0.6halibut_8.0.5halibut/8.0.6halibut/8.0.58.0.68.0.5halibut
Add a information window that can be switched to based on the "event.info" event from signal composer that the steering wheel "Info" button results in. For now, it simply displays the vehicle and engine speed in numeric form in a larger font, and a small time display. The speeds are also driven by the corresponding signal composer events that are hooked to the underlying CAN messages. Bug-AGL: SPEC-3109 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ibe66ecdb94b854d4ebc7f98ad7e1bf01fc615f1a
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 108ce08..eb00109 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -10,6 +10,7 @@
#include <qlibwindowmanager.h>
#include <qlibhomescreen.h>
#include <navigation.h>
+#include <signalcomposer.h>
#include "navigation_client.h"
#include "qcheapruler.hpp"
@@ -89,6 +90,8 @@ int main(int argc, char *argv[])
Navigation *navigation = new Navigation(bindingAddress, context);
+ context->setContextProperty("SignalComposer", new SignalComposer(bindingAddress, context));
+
engine.load(QUrl(QStringLiteral("qrc:qml/Main.qml")));
QObject *root = engine.rootObjects().first();