This commit is contained in:
Your Name
2024-02-13 03:17:31 -06:00
parent ff80bfe06a
commit 589c5dfc82
2 changed files with 17 additions and 17 deletions

View File

@@ -43,10 +43,6 @@ LogoWidget::LogoWidget(QWidget *parent) : QWidget(parent) {
// connect(&m_anim, SIGNAL(valueChanged(QVariant)), SLOT(update()));
}
void BodyWindow::paintEvent(QPaintEvent *event) {
QPainter painter(this);
}
BodyWindow::BodyWindow(QWidget *parent) : fuel_filter(1.0, 5., 1. / UI_FREQ), QWidget(parent) {
QGridLayout *layout = new QGridLayout(this);
main_layout->setSpacing(0);
@@ -64,6 +60,10 @@ BodyWindow::BodyWindow(QWidget *parent) : fuel_filter(1.0, 5., 1. / UI_FREQ), QW
QObject::connect(uiState(), &UIState::uiUpdate, this, &BodyWindow::updateState);
}
void BodyWindow::paintEvent(QPaintEvent *event) {
QPainter painter(this);
}
void BodyWindow::updateState(const UIState &s) {
// if (!isVisible()) {
// return;

View File

@@ -34,20 +34,20 @@ private:
// void paintEvent(QPaintEvent*) override;
// };
// class BodyWindow : public QWidget {
// Q_OBJECT
class BodyWindow : public QWidget {
Q_OBJECT
public:
BodyWindow(QWidget* parent = 0);
private:
void paintEvent(QPaintEvent*) override;
}
// public:
// BodyWindow(QWidget* parent = 0);
// private:
// bool charging = false;
// uint64_t last_button = 0;
// FirstOrderFilter fuel_filter;
// QLabel *face;
// QMovie *awake, *sleep;
// RecordButton *btn;
// void paintEvent(QPaintEvent*) override;
// bool charging = false;
// uint64_t last_button = 0;
// FirstOrderFilter fuel_filter;
// QLabel *face;
// QMovie *awake, *sleep;
// RecordButton *btn;
// private slots:
// void updateState(const UIState &s);