mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-16 06:42:12 +08:00
ba1a20414e
* add navigation panel to settings * am/pm display and dynamic width old-commit-hash: 3c197953bc19c470547b950cd987af39909c5e9e
20 lines
644 B
C++
20 lines
644 B
C++
#include "map_settings.h"
|
|
|
|
#include "selfdrive/ui/qt/widgets/controls.h"
|
|
|
|
|
|
MapPanel::MapPanel(QWidget* parent) : QWidget(parent) {
|
|
QVBoxLayout *layout = new QVBoxLayout;
|
|
Params params = Params();
|
|
|
|
QString dongle = QString::fromStdString(params.get("DongleId", false));
|
|
// TODO: Add buttons for home/work shortcuts
|
|
|
|
layout->addWidget(new ParamControl("NavSettingTime24h",
|
|
"Show ETA in 24h format",
|
|
"Use 24h format instead of am/pm",
|
|
"",
|
|
this));
|
|
layout->addStretch();
|
|
setLayout(layout);
|
|
} |