Make QSGNode and friends extensible via a d-pointer
authorSean Harmer <sean.harmer@kdab.com>
Tue, 16 Apr 2013 10:25:14 +0000 (11:25 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 16 Apr 2013 13:33:17 +0000 (15:33 +0200)
commita6ccf8b484596091b9a38ac37dac43c456cdc730
tree6948e87eb8711878d6230b015a23611cbe9904a5
parent3dbbcc09e98d768a5b7b6c0a498f8aefd9e25b9e
Make QSGNode and friends extensible via a d-pointer

Convert the private void *m_reserved to a d_ptr so as to make QSGNode
inherited classes extensible without breaking binary compatibility.
QSGNode and subclasses do not create a private instance by default.

This is required by a follow-up commit where a new member needs to be
added to QSGSimpleTextureNode. Protected ctors have been added to the
superclasses of QSGSimpleTextureNode in the usual fashion.

Change-Id: I30c5f5d057654145d87f18c34c5d13a6ff5f7b11
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/scenegraph/coreapi/qsgnode.cpp
src/quick/scenegraph/coreapi/qsgnode.h
src/quick/scenegraph/coreapi/qsgnode_p.h [new file with mode: 0644]
src/quick/scenegraph/scenegraph.pri