[Main] Remove deprecated Qt < 5.9 code

This commit is contained in:
Chris Hennes
2021-03-31 10:26:27 -05:00
committed by wwmayer
parent 5592548e2e
commit d959bf1582
2 changed files with 0 additions and 11 deletions

View File

@@ -106,9 +106,7 @@ FreeCADGui_showMainWindow(PyObject * /*self*/, PyObject *args)
std::thread t([]() {
static int argc = 0;
static char **argv = {0};
#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
#endif
// This only works well if the QApplication is the very first created instance
// of a QObject. Otherwise the application lives in a different thread than the
// main thread which will cause hazardous behaviour.