summaryrefslogtreecommitdiffstats
path: root/src/core/aspects/qaspectengine.h
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2015-01-21 17:30:12 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-01-25 08:59:37 +0100
commit49d36cb4f4c539b0bda3db3b0770545c23489f9e (patch)
tree05c76ecc344d99b9ab4d8dd5ff6e58c501913198 /src/core/aspects/qaspectengine.h
parent6da3ac8e997886c2c6f03879be68d8a39994ab50 (diff)
Add convenience to register aspects by name
Change-Id: I442a31933070a09b1399b02a715a82fc27f87c40 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/aspects/qaspectengine.h')
-rw-r--r--src/core/aspects/qaspectengine.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/aspects/qaspectengine.h b/src/core/aspects/qaspectengine.h
index 077526bd1..f94145a12 100644
--- a/src/core/aspects/qaspectengine.h
+++ b/src/core/aspects/qaspectengine.h
@@ -43,7 +43,7 @@
#define QT3D_QASPECTENGINE_H
#include <QObject>
-#include <Qt3DCore/qt3dcore_global.h>
+#include <Qt3DCore/QAspectFactory>
#include <QList>
QT_BEGIN_NAMESPACE
@@ -69,8 +69,12 @@ public:
void setRootEntity(QEntity *root);
QSharedPointer<QEntity> rootEntity() const;
+ QAspectFactory aspectFactory() const;
+ void setAspectFactory(const QAspectFactory &factory);
+
void setData(const QVariantMap &data);
void registerAspect(QAbstractAspect *aspect);
+ void registerAspect(const QString &name);
QList<QAbstractAspect*> aspects() const;