summaryrefslogtreecommitdiffstats
path: root/src/render/backend
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-11-10 12:29:30 +0100
committerAndy Nichols <andy.nichols@theqtcompany.com>2015-11-16 12:26:44 +0000
commitbcd550f41bf8be1fd09f796e648f2b9b4c3fa64e (patch)
tree2410f7c4e34756a0c2a11724aac3b9aa80237970 /src/render/backend
parent281629e9335644e7e7fab11cdf8c8d745dedc086 (diff)
Entity: add hasChildren method
Change-Id: I0580578ca27b8b32ddf3d8c29b5bab192e24c166 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/render/backend')
-rw-r--r--src/render/backend/entity_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/backend/entity_p.h b/src/render/backend/entity_p.h
index 4566f749a..4b6c88492 100644
--- a/src/render/backend/entity_p.h
+++ b/src/render/backend/entity_p.h
@@ -99,6 +99,7 @@ public:
void removeChildHandle(HEntity childHandle);
QVector<HEntity> childrenHandles() const { return m_childrenHandles; }
QVector<Entity *> children() const;
+ bool hasChildren() const { return !m_childrenHandles.empty(); }
QMatrix4x4 *worldTransform();
const QMatrix4x4 *worldTransform() const;