diff --git a/selfdrive/ui/sunnypilot/qt/onroad/hud.cc b/selfdrive/ui/sunnypilot/qt/onroad/hud.cc index 15722cc9f..9ead933d0 100644 --- a/selfdrive/ui/sunnypilot/qt/onroad/hud.cc +++ b/selfdrive/ui/sunnypilot/qt/onroad/hud.cc @@ -171,7 +171,7 @@ int HudRendererSP::drawBottomDevUIElement(QPainter &p, int x, int y, const QStri real_rect3.moveTop(real_rect.top()); real_rect3.moveLeft(real_rect2.right() + 10); - p.setPen(QColorConstants::White); + p.setPen(Qt::white); p.drawText(real_rect, Qt::AlignLeft | Qt::AlignVCenter, label); p.setPen(color); diff --git a/selfdrive/ui/sunnypilot/qt/onroad/hud.h b/selfdrive/ui/sunnypilot/qt/onroad/hud.h index d869d989d..968789bc1 100644 --- a/selfdrive/ui/sunnypilot/qt/onroad/hud.h +++ b/selfdrive/ui/sunnypilot/qt/onroad/hud.h @@ -20,7 +20,7 @@ public: private: Params params; - void drawText(QPainter &p, int x, int y, const QString &text, QColor color = QColorConstants::White); + void drawText(QPainter &p, int x, int y, const QString &text, QColor color = Qt::white); void drawRightDevUI(QPainter &p, int x, int y); int drawRightDevUIElement(QPainter &p, int x, int y, const QString &value, const QString &label, const QString &units, QColor &color); int drawBottomDevUIElement(QPainter &p, int x, int y, const QString &value, const QString &label, const QString &units, QColor &color);