wip
This commit is contained in:
@@ -43,10 +43,6 @@ LogoWidget::LogoWidget(QWidget *parent) : QWidget(parent) {
|
|||||||
// connect(&m_anim, SIGNAL(valueChanged(QVariant)), SLOT(update()));
|
// 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) {
|
BodyWindow::BodyWindow(QWidget *parent) : fuel_filter(1.0, 5., 1. / UI_FREQ), QWidget(parent) {
|
||||||
QGridLayout *layout = new QGridLayout(this);
|
QGridLayout *layout = new QGridLayout(this);
|
||||||
main_layout->setSpacing(0);
|
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);
|
QObject::connect(uiState(), &UIState::uiUpdate, this, &BodyWindow::updateState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BodyWindow::paintEvent(QPaintEvent *event) {
|
||||||
|
QPainter painter(this);
|
||||||
|
}
|
||||||
|
|
||||||
void BodyWindow::updateState(const UIState &s) {
|
void BodyWindow::updateState(const UIState &s) {
|
||||||
// if (!isVisible()) {
|
// if (!isVisible()) {
|
||||||
// return;
|
// return;
|
||||||
|
|||||||
@@ -34,20 +34,20 @@ private:
|
|||||||
// void paintEvent(QPaintEvent*) override;
|
// void paintEvent(QPaintEvent*) override;
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// class BodyWindow : public QWidget {
|
class BodyWindow : public QWidget {
|
||||||
// Q_OBJECT
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
BodyWindow(QWidget* parent = 0);
|
||||||
|
private:
|
||||||
|
void paintEvent(QPaintEvent*) override;
|
||||||
|
}
|
||||||
|
|
||||||
// public:
|
// bool charging = false;
|
||||||
// BodyWindow(QWidget* parent = 0);
|
// uint64_t last_button = 0;
|
||||||
|
// FirstOrderFilter fuel_filter;
|
||||||
// private:
|
// QLabel *face;
|
||||||
// bool charging = false;
|
// QMovie *awake, *sleep;
|
||||||
// uint64_t last_button = 0;
|
// RecordButton *btn;
|
||||||
// FirstOrderFilter fuel_filter;
|
|
||||||
// QLabel *face;
|
|
||||||
// QMovie *awake, *sleep;
|
|
||||||
// RecordButton *btn;
|
|
||||||
// void paintEvent(QPaintEvent*) override;
|
|
||||||
|
|
||||||
// private slots:
|
// private slots:
|
||||||
// void updateState(const UIState &s);
|
// void updateState(const UIState &s);
|
||||||
|
|||||||
Reference in New Issue
Block a user