mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-28 20:33:51 +08:00
* remove setlayout * remove setLayout * space * Update selfdrive/ui/qt/maps/map.cc Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
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();
|
|
}
|