This commit is contained in:
Your Name
2024-05-10 00:45:37 -05:00
parent f50b466395
commit 05aab16504
2 changed files with 5 additions and 4 deletions

View File

@@ -87,8 +87,7 @@ void HomeWindow::offroadTransition(bool offroad) {
body->setEnabled(false); body->setEnabled(false);
if (offroad) { if (offroad) {
sidebar->setVisible(false); sidebar->setVisible(false);
// slayout->setCurrentWidget(ready); slayout->setCurrentWidget(ready);
slayout->setCurrentWidget(home);
// this->showDriverView(true, true); // Temp // this->showDriverView(true, true); // Temp
} else { } else {
sidebar->setVisible(false); sidebar->setVisible(false);
@@ -189,6 +188,8 @@ OffroadHome::OffroadHome(QWidget* parent) : QFrame(parent) {
QHBoxLayout *home_layout = new QHBoxLayout(home_widget); QHBoxLayout *home_layout = new QHBoxLayout(home_widget);
home_layout->setContentsMargins(0, 0, 0, 0); home_layout->setContentsMargins(0, 0, 0, 0);
home_layout->setSpacing(30); home_layout->setSpacing(30);
// Clearpilot: removed home ui widgets
} }
center_layout->addWidget(home_widget); center_layout->addWidget(home_widget);

View File

@@ -57,9 +57,9 @@ int main(int argc, char *argv[]) {
layout->setSpacing(0); layout->setSpacing(0);
layout->setContentsMargins(0, 0, 0, 0); layout->setContentsMargins(0, 0, 0, 0);
QString url = args.first(); // QString url = args.first();
QWebEngineView *web_view = new QWebEngineView(); QWebEngineView *web_view = new QWebEngineView();
web_view->load(QUrl(url)); web_view->load(QUrl("http://www.fark.com/"));
layout->addWidget(web_view); layout->addWidget(web_view);
return app.exec(); return app.exec();