Gui: [skip ci] fix build failure if shiboken support is disabled

This commit is contained in:
wmayer
2022-11-05 13:38:39 +01:00
parent 4a0df1f352
commit 9c358a5d3a

View File

@@ -303,6 +303,7 @@ private:
// mw.style()
// import gc
// gc.collect()
#if defined (HAVE_SHIBOKEN) && defined(HAVE_PYSIDE)
PyTypeObject * type = getPyTypeObjectForTypeName<QApplication>();
if (type) {
auto sbk_type = reinterpret_cast<SbkObjectType*>(type);
@@ -310,6 +311,7 @@ private:
PyObject* pyobj = Shiboken::Object::newObject(sbk_type, qApp, false, false, typeName.c_str());
addQObject(qApp, pyobj);
}
#endif
}
WrapperManager()