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:
@@ -575,7 +575,7 @@ void RubberbandSelection::initialize()
|
||||
rubberband.setViewer(_pcView3D);
|
||||
rubberband.setWorking(false);
|
||||
_pcView3D->addGraphicsItem(&rubberband);
|
||||
if (QtGLFramebufferObject::hasOpenGLFramebufferObjects()) {
|
||||
if (QOpenGLFramebufferObject::hasOpenGLFramebufferObjects()) {
|
||||
_pcView3D->setRenderType(View3DInventorViewer::Image);
|
||||
}
|
||||
_pcView3D->redraw();
|
||||
@@ -586,7 +586,7 @@ void RubberbandSelection::terminate(bool abort)
|
||||
Q_UNUSED(abort)
|
||||
|
||||
_pcView3D->removeGraphicsItem(&rubberband);
|
||||
if (QtGLFramebufferObject::hasOpenGLFramebufferObjects()) {
|
||||
if (QOpenGLFramebufferObject::hasOpenGLFramebufferObjects()) {
|
||||
_pcView3D->setRenderType(View3DInventorViewer::Native);
|
||||
}
|
||||
_pcView3D->redraw();
|
||||
|
||||
Reference in New Issue
Block a user