This commit is contained in:
Your Name
2024-05-09 21:17:20 -05:00
parent ffe401f5d1
commit fbd09ad9bd
3 changed files with 54 additions and 94 deletions

View File

@@ -14,17 +14,18 @@
#include "selfdrive/ui/ui.h"
class ReadyWindow : public QWidget {
Q_OBJECT
Q_OBJECT
public:
ReadyWindow(QWidget* parent = 0);
ReadyWindow(QWidget* parent = nullptr);
private:
void paintEvent(QPaintEvent*) override;
void paintEvent(QPaintEvent *event) override;
void refresh();
bool is_hot = false;
QString cur_temp;
QPixmap img_ready;
QPixmap img_hot;
private slots:
void updateState(const UIState &s);
void offroadTransition(bool onroad);
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
// void refresh();
// QTimer* timer;
};
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
};