wip
This commit is contained in:
@@ -60,7 +60,7 @@ BodyWindow::BodyWindow(QWidget *parent) : QWidget(parent) {
|
|||||||
}
|
}
|
||||||
)");
|
)");
|
||||||
|
|
||||||
notifier = new QSocketNotifier(fileno(stdin), QSocketNotifier::Read);
|
// notifier = new QSocketNotifier(fileno(stdin), QSocketNotifier::Read);
|
||||||
QObject::connect(uiState(), &UIState::uiUpdate, this, &BodyWindow::updateState);
|
QObject::connect(uiState(), &UIState::uiUpdate, this, &BodyWindow::updateState);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,11 +115,11 @@ void BodyWindow::updateState(const UIState &s) {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// void BodyWindow::offroadTransition(bool offroad) {
|
void BodyWindow::offroadTransition(bool offroad) {
|
||||||
// btn->setChecked(true);
|
// btn->setChecked(true);
|
||||||
// btn->setEnabled(true);
|
// btn->setEnabled(true);
|
||||||
// fuel_filter.reset(1.0);
|
// fuel_filter.reset(1.0);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// void BodyWindow::updateState(const UIState &s) {
|
// void BodyWindow::updateState(const UIState &s) {
|
||||||
// if (!isVisible()) {
|
// if (!isVisible()) {
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ public:
|
|||||||
BodyWindow(QWidget* parent = 0);
|
BodyWindow(QWidget* parent = 0);
|
||||||
private:
|
private:
|
||||||
void paintEvent(QPaintEvent*) override;
|
void paintEvent(QPaintEvent*) override;
|
||||||
|
private slots:
|
||||||
|
void updateState(const UIState &s);
|
||||||
|
void offroadTransition(bool onroad);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// bool charging = false;
|
// bool charging = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user