From 810a2d9448df89ef84ecc1c794b63fad55350d69 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Fri, 12 Sep 2025 09:03:17 +0200 Subject: [PATCH] Revert & Reapply "UI: Developer UI" temporarily due to QT version mismatch (#1237) * Revert "UI: Developer UI (#1233)" This reverts commit 1bb4ca2547448f2189f67cb54db150e78bc4d487. * Reapply "UI: Developer UI (#1233)" This reverts commit b0a77049dacbdd59bc21d154820ba8cadf4ad201. * QColorConstants is not on device's QT version. Thanks @kumar for the fix --- selfdrive/ui/sunnypilot/qt/onroad/hud.cc | 2 +- selfdrive/ui/sunnypilot/qt/onroad/hud.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);