diff options
Diffstat (limited to 'src/declarative/scenegraph/coreapi/qsgnode.h')
-rw-r--r-- | src/declarative/scenegraph/coreapi/qsgnode.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/declarative/scenegraph/coreapi/qsgnode.h b/src/declarative/scenegraph/coreapi/qsgnode.h index 2705958e04..cee6b76869 100644 --- a/src/declarative/scenegraph/coreapi/qsgnode.h +++ b/src/declarative/scenegraph/coreapi/qsgnode.h @@ -152,16 +152,11 @@ public: protected: QSGNode(NodeType type); - // When a node is destroyed, it will detach from the scene graph and the renderer will be - // notified about the change. If the node is detached in the base node's destructor, the - // renderer can't safely cast the node to its original type, since at this point it has been - // partly destroyed already. To solve this problem, all the node destructors must call a common - // destroy method. - - void destroy(); - private: + friend class QSGRootNode; + void init(); + void destroy(); QSGNode *m_parent; NodeType m_type; |