summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qlevelofdetail.h
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-01-12 22:11:16 +0000
committerSean Harmer <sean.harmer@kdab.com>2017-01-23 21:45:27 +0000
commit9c17af71e63873dfa7af3fcc7c1303a302f2608a (patch)
treed2b003ee83e3d85f688e93b3a86b6a6b84971ddd /src/render/frontend/qlevelofdetail.h
parent45b5514ee1f816b24461f7523b779f65c6c93ea5 (diff)
Add QLevelOfDetailSwitch to toggle child entities
Derived from QLevelOfDetail, can be used to toggle the enabled state of child entities based on the currentIndex property. Especially useful in QML since the child entities is not available there. Change-Id: Icafad22a6990d537bdda239907c62f6b31260c81 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qlevelofdetail.h')
-rw-r--r--src/render/frontend/qlevelofdetail.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/frontend/qlevelofdetail.h b/src/render/frontend/qlevelofdetail.h
index 677169f02..f3325aea0 100644
--- a/src/render/frontend/qlevelofdetail.h
+++ b/src/render/frontend/qlevelofdetail.h
@@ -94,11 +94,11 @@ Q_SIGNALS:
protected:
explicit QLevelOfDetail(QLevelOfDetailPrivate &dd, Qt3DCore::QNode *parent = nullptr);
+ Qt3DCore::QNodeCreatedChangeBasePtr createNodeCreationChange() const Q_DECL_OVERRIDE;
+ void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change) Q_DECL_OVERRIDE;
private:
Q_DECLARE_PRIVATE(QLevelOfDetail)
- Qt3DCore::QNodeCreatedChangeBasePtr createNodeCreationChange() const Q_DECL_OVERRIDE;
- void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change) Q_DECL_OVERRIDE;
Q_PRIVATE_SLOT(d_func(), void _q_radiusChanged(float))
Q_PRIVATE_SLOT(d_func(), void _q_centerChanged(const QVector3D&))
};