Gui: fix build failure with Qt 5.9
This commit is contained in:
@@ -26,8 +26,6 @@
|
||||
# include <QDir>
|
||||
# include <QIcon>
|
||||
# include <QWidget>
|
||||
# include <QGraphicsItem>
|
||||
# include <QGraphicsObject>
|
||||
#endif
|
||||
|
||||
#include <QMetaType>
|
||||
@@ -116,6 +114,12 @@ PyTypeObject** SbkPySide2_QtWidgetsTypes=nullptr;
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
// Must be imported after PySide headers
|
||||
#ifndef _PreComp_
|
||||
# include <QGraphicsItem>
|
||||
# include <QGraphicsObject>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <Base/Quantity.h>
|
||||
#include <Base/QuantityPy.h>
|
||||
|
||||
Reference in New Issue
Block a user