Qt5: workaround for undocking of mdi view
fix minor issues reported by clang static analyzer
This commit is contained in:
@@ -1010,10 +1010,10 @@ void View3DInventor::setCurrentViewMode(ViewMode newmode)
|
||||
// Internally the QOpenGLWidget switches of the multi-sampling and there is no
|
||||
// way to switch it on again. So as a workaround we just re-create a new viewport
|
||||
// The method is private but defined as slot to avoid to call it by accident.
|
||||
int index = _viewer->metaObject()->indexOfMethod("replaceViewport()");
|
||||
if (index >= 0) {
|
||||
_viewer->qt_metacall(QMetaObject::InvokeMetaMethod, index, 0);
|
||||
}
|
||||
//int index = _viewer->metaObject()->indexOfMethod("replaceViewport()");
|
||||
//if (index >= 0) {
|
||||
// _viewer->qt_metacall(QMetaObject::InvokeMetaMethod, index, 0);
|
||||
//}
|
||||
#endif
|
||||
|
||||
// This widget becomes the focus proxy of the embedded GL widget if we leave
|
||||
|
||||
Reference in New Issue
Block a user