diff options
author | Liang Qi <liang.qi@qt.io> | 2016-09-05 09:47:19 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-09-05 09:47:19 +0200 |
commit | d5bb02ffe04b9b5ca7d86c8b905b352cc265df32 (patch) | |
tree | 83831d332763c1974e512de14cfc2757b89a5d84 /src/quick3d | |
parent | 4bbdcc1fac6b21a6d4607c93a5f8759145248f07 (diff) | |
parent | 79aeeba87d3c17b4f652423a660a213f9e2faf25 (diff) |
Merge remote-tracking branch 'origin/5.7' into 5.8
Conflicts:
tests/manual/manual.pro
Change-Id: Ie1186d3465516d8d50b8261f72e64d8d454d377b
Diffstat (limited to 'src/quick3d')
-rw-r--r-- | src/quick3d/quick3d/items/quick3dentity.cpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/quick3d/quick3d/items/quick3dentity.cpp b/src/quick3d/quick3d/items/quick3dentity.cpp index 4eac4400e..ebc92e843 100644 --- a/src/quick3d/quick3d/items/quick3dentity.cpp +++ b/src/quick3d/quick3d/items/quick3dentity.cpp @@ -47,20 +47,37 @@ namespace Quick { /*! \qmltype Entity + \instantiates Qt3DCore::QEntity \inherits Node \inqmlmodule Qt3D.Core \since 5.5 -*/ + + \brief Entity is a \l Node subclass that can aggregate several + \l Component3D instances that will specify its behavior. + + By itself a Entity is an empty shell. The behavior of a Entity + object is defined by the \l Component3D objects it references. Each Qt3D + backend aspect will be able to interpret and process an Entity by + recognizing which components it is made up of. One aspect may decide to only + process entities composed of a single \l Transform component whilst + another may focus on \l MouseHandler. + + \sa Qt3D.Core::Component3D, Qt3D.Core::Transform + */ + +/*! + \qmlproperty list<Component3D> Entity::components + Holds the list of \l Component3D instances, which define the behavior + of the entity. + \readonly + */ Quick3DEntity::Quick3DEntity(QObject *parent) : QObject(parent) { } -/*! - \qmlproperty list<Component3D> Qt3DCore::Entity::components - \readonly -*/ + QQmlListProperty<QComponent> Quick3DEntity::componentList() { return QQmlListProperty<Qt3DCore::QComponent>(this, 0, |