diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2015-02-04 16:45:32 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-02-08 15:01:51 +0000 |
commit | c72f232b572b5b4b2e20622b14fe6d2858c5d465 (patch) | |
tree | 5bec835ebbfe563bce97c3127e026b1191511186 /src/core/aspects/qabstractaspect.h | |
parent | 2ef4491efe28141aa40555f1935b22ca73bdb203 (diff) |
Introduce QBackendNodeFactory
This interface will be provided by aspects and used by backend nodes
when they need to resolve a frontend node to a backend one.
Change-Id: I695b1c5027826377c3e5ac7d2a05ca653148b96f
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/aspects/qabstractaspect.h')
-rw-r--r-- | src/core/aspects/qabstractaspect.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/aspects/qabstractaspect.h b/src/core/aspects/qabstractaspect.h index 27a4099f3..e308e49a9 100644 --- a/src/core/aspects/qabstractaspect.h +++ b/src/core/aspects/qabstractaspect.h @@ -46,6 +46,7 @@ #include <QSharedPointer> #include <Qt3DCore/qt3dcore_global.h> #include <Qt3DCore/qaspectjobproviderinterface.h> +#include <Qt3DCore/qbackendnodefactory.h> #include <Qt3DCore/qsceneobserverinterface.h> QT_BEGIN_NAMESPACE @@ -67,6 +68,7 @@ class QT3DCORESHARED_EXPORT QAbstractAspect : public QObject , public QAspectJobProviderInterface , public QSceneObserverInterface + , public QBackendNodeFactory { Q_OBJECT @@ -94,7 +96,7 @@ public: protected: QAbstractAspect(QAbstractAspectPrivate &dd, QObject *parent = 0); - QBackendNode *createBackendNode(QNode *frontend) const; + QBackendNode *createBackendNode(QNode *frontend) const Q_DECL_OVERRIDE; QBackendNode *getBackendNode(QNode *frontend) const; void clearBackendNode(QNode *frontend) const; |