[Main] Remove deprecated Qt < 5.9 code

This commit is contained in:
Chris Hennes
2021-04-01 19:29:44 +02:00
committed by wwmayer
parent 71c9c24374
commit 6b4b245f08
2 changed files with 0 additions and 11 deletions
-2
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.