onroad UI optimizations (#20871)

* onroad UI optimizations

* remove that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5f5bbd64f28c2567cddccd5e27a93599d57b010b
This commit is contained in:
Adeeb Shihadeh
2021-05-10 23:19:32 -07:00
committed by GitHub
parent 494860c201
commit 7410c4a2d7
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -25,6 +25,7 @@ OnroadWindow::OnroadWindow(QWidget *parent) : QWidget(parent) {
alerts->raise();
setLayout(layout);
setAttribute(Qt::WA_OpaquePaintEvent);
}
// ***** onroad widgets *****
@@ -166,6 +167,11 @@ void OnroadAlerts::paintEvent(QPaintEvent *event) {
}
}
NvgWindow::NvgWindow(QWidget *parent) : QOpenGLWidget(parent) {
setAttribute(Qt::WA_OpaquePaintEvent);
}
NvgWindow::~NvgWindow() {
makeCurrent();
doneCurrent();
+1 -1
View File
@@ -60,7 +60,7 @@ class NvgWindow : public QOpenGLWidget, protected QOpenGLFunctions {
public:
using QOpenGLWidget::QOpenGLWidget;
explicit NvgWindow(QWidget* parent = 0) : QOpenGLWidget(parent) {};
explicit NvgWindow(QWidget* parent = 0);
~NvgWindow();
protected: