1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

Replace obsolete QGLWidget by QOpenGLWidget

This commit is contained in:
f4exb
2022-03-18 18:13:08 +01:00
parent 60d4b2f126
commit cbdf46098d
8 changed files with 25 additions and 20 deletions
+3 -2
View File
@@ -39,7 +39,8 @@ const GLfloat GLScope::m_q3RadiiConst[] = {
1.0f, 0.75f, 0.0f, 0.25f // 150
};
GLScope::GLScope(QWidget *parent) : QGLWidget(parent),
GLScope::GLScope(QWidget *parent) :
QOpenGLWidget(parent),
m_tracesData(nullptr),
m_traces(nullptr),
m_projectionTypes(nullptr),
@@ -195,7 +196,7 @@ void GLScope::initializeGL()
}
}
connect(glCurrentContext, &QOpenGLContext::aboutToBeDestroyed, this, &GLScope::cleanup); // TODO: when migrating to QOpenGLWidget
connect(glCurrentContext, &QOpenGLContext::aboutToBeDestroyed, this, &GLScope::cleanup);
QOpenGLFunctions *glFunctions = QOpenGLContext::currentContext()->functions();
glFunctions->initializeOpenGLFunctions();