summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/runtime/Qt3DSApplication.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/Qt3DSApplication.cpp b/src/runtime/Qt3DSApplication.cpp
index 9f013a2..d215e2f 100644
--- a/src/runtime/Qt3DSApplication.cpp
+++ b/src/runtime/Qt3DSApplication.cpp
@@ -1623,8 +1623,10 @@ struct SApp : public IApplication
// else assume main presentation and component:slide
}
component = presentation->GetRoot();
- if (!componentName.isNull() && componentName != component->m_Name)
- component = component->FindChild(CHash::HashString(qPrintable(componentName)));
+ if (!componentName.isNull() && componentName != component->m_Name) {
+ component = CQmlElementHelper::GetElement(*this, presentation,
+ qPrintable(componentName), nullptr);
+ }
if (!component) {
qCWarning(WARNING) << "Could not find slide: " << elementPath;
return false;