Qt5: workaround for undocking of mdi view

fix minor issues reported by clang static analyzer
This commit is contained in:
wmayer
2017-05-03 22:01:46 +02:00
parent 810ec334d0
commit ffa10bbf0c
6 changed files with 83 additions and 10 deletions

View File

@@ -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