diff options
Diffstat (limited to 'src/core/nodes/qnode_p.h')
-rw-r--r-- | src/core/nodes/qnode_p.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/nodes/qnode_p.h b/src/core/nodes/qnode_p.h index fd3265870..506708762 100644 --- a/src/core/nodes/qnode_p.h +++ b/src/core/nodes/qnode_p.h @@ -60,6 +60,7 @@ #include <Qt3DCore/private/qobservableinterface_p.h> #include <Qt3DCore/private/qt3dcore_global_p.h> #include <QtCore/private/qobject_p.h> +#include <QQueue> QT_BEGIN_NAMESPACE @@ -174,6 +175,23 @@ private: QHash<QNode *, QMetaObject::Connection> m_destructionConnections; }; +class NodePostConstructorInit : public QObject +{ + Q_OBJECT +public: + NodePostConstructorInit(QObject *parent = nullptr); + virtual ~NodePostConstructorInit(); + void removeNode(QNode *node); + void addNode(QNode *node); + +private Q_SLOTS: + void processNodes(); + +private: + QQueue<QNodePrivate *> m_nodesToConstruct; + bool m_requestedProcessing; +}; + } // namespace Qt3DCore QT_END_NAMESPACE |