diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-02-22 19:30:41 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-02-22 21:17:39 +0000 |
commit | dc9b482c129e36b3e5eeeec9fc09d05ed8242fd1 (patch) | |
tree | 43cf3aec57d59442c2086bbc5d6d7494394975c5 /src/core/aspects | |
parent | 8154b7ec9a8feeb78faf5cf6259eb86fe0dc0683 (diff) |
QComponent: rename shareabe getter to isShareable
Change-Id: I4e65cc103da7d6a75bcac8585af0bc82c365e653
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/aspects')
-rw-r--r-- | src/core/aspects/qaspectengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/aspects/qaspectengine.cpp b/src/core/aspects/qaspectengine.cpp index de416eb5e..7fce8e4f0 100644 --- a/src/core/aspects/qaspectengine.cpp +++ b/src/core/aspects/qaspectengine.cpp @@ -90,7 +90,7 @@ void QAspectEnginePrivate::initEntity(QEntity *entity) { Q_FOREACH (QComponent *comp, entity->components()) { if (!m_scene->hasEntityForComponent(comp->id(), entity->id())) { - if (!comp->shareable() && !m_scene->entitiesForComponent(comp->id()).isEmpty()) + if (!comp->isShareable() && !m_scene->entitiesForComponent(comp->id()).isEmpty()) qWarning() << "Trying to assign a non shareable component to more than one Entity"; m_scene->addEntityForComponent(comp->id(), entity->id()); } |