missed from merge

This commit is contained in:
Jason Wen
2024-07-29 15:15:46 -04:00
parent 2734aa7eb7
commit 5382db2b19
4 changed files with 1 additions and 12 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ void RequestRepeater::setupCacheProcess(const QString &cacheKey) {
}
QObject::connect(this, &HttpRequest::requestDone, [=](const QString &resp, bool success) {
if (success && resp != prevResp) {
params.put(cache_key.toStdString(), resp.toStdString());
params.put(cacheKey.toStdString(), resp.toStdString());
prevResp = resp;
}
});
@@ -1406,16 +1406,11 @@ void AnnotatedCameraWidgetSP::drawLead(QPainter &painter, const cereal::RadarSta
}
void AnnotatedCameraWidgetSP::paintGL() {
}
void AnnotatedCameraWidgetSP::paintEvent(QPaintEvent *event) {
UIStateSP *s = uiStateSP();
SubMaster &sm = *(s->sm);
const double start_draw_t = millis_since_boot();
const cereal::ModelDataV2::Reader &model = sm["modelV2"].getModelV2();
QPainter painter(this);
// draw camera frame
{
std::lock_guard lk(frame_lock);
@@ -1460,10 +1455,8 @@ void AnnotatedCameraWidgetSP::paintEvent(QPaintEvent *event) {
} else {
CameraWidget::updateCalibration(DEFAULT_CALIBRATION);
}
painter.beginNativePainting();
CameraWidget::setFrameId(model.getFrameId());
CameraWidget::paintGL();
painter.endNativePainting();
}
QPainter painter(this);
@@ -223,7 +223,6 @@ protected:
inline QColor whiteColor(int alpha = 255) { return QColor(255, 255, 255, alpha); }
inline QColor blackColor(int alpha = 255) { return QColor(0, 0, 0, alpha); }
void paintEvent(QPaintEvent *event) override;
void rocketFuel(QPainter &p);
double prev_draw_t = 0;
@@ -28,9 +28,6 @@ Last updated: July 29, 2024
#include <QScrollBar>
ScrollViewSP::ScrollViewSP(QWidget *w, QWidget *parent) : ScrollView(w, parent) {
}
void ScrollViewSP::setLastScrollPosition() {
lastScrollPosition = verticalScrollBar()->value();
}