Add VIS vehicle signal support
[apps/homescreen.git] / homescreen / src / main.cpp
index cf7f02e..74ec4f4 100644 (file)
 #include <QQuickWindow>
 #include <QTimer>
 
-#if 0
 #include <weather.h>
 #include <bluetooth.h>
-#endif
+
 #include "applicationlauncher.h"
 #include "statusbarmodel.h"
 #include "mastervolume.h"
@@ -249,6 +248,7 @@ load_agl_shell_app(QPlatformNativeInterface *native,
 int main(int argc, char *argv[])
 {
     setenv("QT_QPA_PLATFORM", "wayland", 1);
+    setenv("QT_QUICK_CONTROLS_STYLE", "AGL", 1);
     QGuiApplication a(argc, argv);
     const char *screen_name;
     bool is_demo_val = false;
@@ -299,10 +299,9 @@ int main(int argc, char *argv[])
 
     context->setContextProperty("homescreenHandler", homescreenHandler);
     context->setContextProperty("launcher", launcher);
-#if 0
-    context->setContextProperty("weather", new Weather(bindingAddress));
-    context->setContextProperty("bluetooth", new Bluetooth(bindingAddress, context));
-#endif
+    context->setContextProperty("weather", new Weather());
+    context->setContextProperty("bluetooth", new Bluetooth(false, context));
+
     // we add it here even if we don't use it
     context->setContextProperty("shell", aglShell);