This commit is contained in:
Your Name
2024-05-10 00:58:07 -05:00
parent 05aab16504
commit 7d56c3fdbc
2 changed files with 25 additions and 17 deletions

View File

@@ -11,6 +11,8 @@
#include "selfdrive/ui/qt/widgets/prime.h"
#include "system/hardware/hw.h"
#include <QWebEngineView>
#ifdef ENABLE_MAPS
#include "selfdrive/ui/qt/maps/map_settings.h"
#endif
@@ -88,6 +90,7 @@ void HomeWindow::offroadTransition(bool offroad) {
if (offroad) {
sidebar->setVisible(false);
slayout->setCurrentWidget(ready);
// slayout->setCurrentWidget(home);
// this->showDriverView(true, true); // Temp
} else {
sidebar->setVisible(false);
@@ -188,8 +191,13 @@ OffroadHome::OffroadHome(QWidget* parent) : QFrame(parent) {
QHBoxLayout *home_layout = new QHBoxLayout(home_widget);
home_layout->setContentsMargins(0, 0, 0, 0);
home_layout->setSpacing(30);
// Clearpilot: removed home ui widgets
// // Create a QWebEngineView
QWebEngineView *web_view = new QWebEngineView();
web_view->load(QUrl("http://fark.com"));
// Add the QWebEngineView to the layout
home_layout->addWidget(web_view);
}
center_layout->addWidget(home_widget);