diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-04-23 14:11:02 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-04-27 07:33:10 +0000 |
commit | 1883b1af29f56d2d998774fbef3765629db602b0 (patch) | |
tree | 9cbe933afd439a5c1e9b00a0c3a31dc02228b561 /src/runtime/api/q3dselement.cpp | |
parent | a9cf1369eceff85632b53de012f7f2d49dfeb4d2 (diff) |
Add Q3DSSceneElement
Exposed to QML as SceneElement.
"Conveniently" duplicates more stuff from Q3DSPresentation. Go figure.
Task-number: QT3DS-1014
Change-Id: Id3af13592cbddafd2081a0eae50fb2dd4c2f3229
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/runtime/api/q3dselement.cpp')
-rw-r--r-- | src/runtime/api/q3dselement.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/api/q3dselement.cpp b/src/runtime/api/q3dselement.cpp index 7e523c6..27a8751 100644 --- a/src/runtime/api/q3dselement.cpp +++ b/src/runtime/api/q3dselement.cpp @@ -90,4 +90,9 @@ void Q3DSElement::fireEvent(const QString &eventName) d->presentation->fireEvent(d->elementPath, eventName); } +void Q3DSElementPrivate::setPresentation(Q3DSPresentation *pres) +{ + presentation = pres; +} + QT_END_NAMESPACE |