mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-19 10:22:08 +08:00
63ff493fe8
* remove setlayout
* remove setLayout
* space
* Update selfdrive/ui/qt/maps/map.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8f5c7e7bb5
20 lines
645 B
C++
20 lines
645 B
C++
#include "map_settings.h"
|
|
|
|
#include "selfdrive/ui/qt/widgets/controls.h"
|
|
|
|
|
|
MapPanel::MapPanel(QWidget* parent) : QWidget(parent) {
|
|
QVBoxLayout *main_layout = new QVBoxLayout(this);
|
|
Params params = Params();
|
|
|
|
QString dongle = QString::fromStdString(params.get("DongleId", false));
|
|
// TODO: Add buttons for home/work shortcuts
|
|
|
|
main_layout->addWidget(new ParamControl("NavSettingTime24h",
|
|
"Show ETA in 24h format",
|
|
"Use 24h format instead of am/pm",
|
|
"",
|
|
this));
|
|
main_layout->addStretch();
|
|
}
|