mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-23 18:42:10 +08:00
shorter
This commit is contained in:
+4
-13
@@ -8,21 +8,12 @@
|
||||
|
||||
#include "selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/blinker_pause_lateral_settings.h"
|
||||
|
||||
BlinkerPauseLateralSettings::BlinkerPauseLateralSettings(
|
||||
const QString ¶m,
|
||||
const QString &title,
|
||||
const QString &description,
|
||||
const QString &icon,
|
||||
QWidget *parent) : ExpandableToggleRow(param, title, description, icon, parent) {
|
||||
BlinkerPauseLateralSettings::BlinkerPauseLateralSettings(const QString ¶m, const QString &title, const QString &description, const QString &icon, QWidget *parent)
|
||||
: ExpandableToggleRow(param, title, description, icon, parent) {
|
||||
|
||||
pauseLateralSpeed = new OptionControlSP(
|
||||
"BlinkerMinLateralControlSpeed",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
{0, 255}, 5);
|
||||
addItem(pauseLateralSpeed);
|
||||
pauseLateralSpeed = new OptionControlSP("BlinkerMinLateralControlSpeed", "", "", "", {0, 255}, 5);
|
||||
connect(pauseLateralSpeed, &OptionControlSP::updateLabels, this, &BlinkerPauseLateralSettings::refresh);
|
||||
addItem(pauseLateralSpeed);
|
||||
|
||||
refresh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user