Gui: Cleanup Qt OpenGL usings in QtOpenGL.h.
Previously the code defined compatiblity usings in `QtOpenGL.h` header, which I think was added for backwards compatiblity with previous Qt OpenGL widgets. As far as I can tell, this is not necessary anymore, and can be cleaned up.
This commit is contained in:
@@ -86,14 +86,14 @@ void SoGLWidgetElement::init(SoState * state)
|
||||
|
||||
SoGLWidgetElement::~SoGLWidgetElement() = default;
|
||||
|
||||
void SoGLWidgetElement::set(SoState * state, QtGLWidget * window)
|
||||
void SoGLWidgetElement::set(SoState * state, QOpenGLWidget * window)
|
||||
{
|
||||
auto elem = static_cast<SoGLWidgetElement *>
|
||||
(SoElement::getElement(state, classStackIndex));
|
||||
elem->window = window;
|
||||
}
|
||||
|
||||
void SoGLWidgetElement::get(SoState * state, QtGLWidget *& window)
|
||||
void SoGLWidgetElement::get(SoState * state, QOpenGLWidget *& window)
|
||||
{
|
||||
const auto that = static_cast<const SoGLWidgetElement *>
|
||||
(SoElement::getConstElement(state, classStackIndex));
|
||||
|
||||
Reference in New Issue
Block a user