diff options
author | Antti Määttä <antti.maatta@qt.io> | 2020-01-20 09:05:11 +0200 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2020-01-22 13:29:00 +0200 |
commit | aee9f758b2fe152d95dcd7ac9776b4e0cd765d0c (patch) | |
tree | 392884eac23a7f1829b49ace65ec5e3632c2cbe8 /src/runtime/Qt3DSComponentManager.cpp | |
parent | 88849a83a6f9ca3524cf3ba32c3a4ed7e6fabdb9 (diff) |
Optimize element attribute name hashing
Task-number: QT3DS-4041
Change-Id: I64ccd129b12053b057e5e992d89a05a2bc6cd33d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/runtime/Qt3DSComponentManager.cpp')
-rw-r--r-- | src/runtime/Qt3DSComponentManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/Qt3DSComponentManager.cpp b/src/runtime/Qt3DSComponentManager.cpp index 1700222..fd77467 100644 --- a/src/runtime/Qt3DSComponentManager.cpp +++ b/src/runtime/Qt3DSComponentManager.cpp @@ -106,7 +106,7 @@ void CComponentManager::GotoSlideIndex(TElement *inComponent, if (&m_Presentation != m_Presentation.GetApplication().GetPrimaryPresentation()) elementPath = m_Presentation.GetName() + QLatin1Char(':'); - elementPath.append(QString::fromUtf8(inComponent->m_Path.c_str())); + elementPath.append(QString::fromUtf8(inComponent->path().c_str())); if (inSlideExit) { SEventCommand theEvent = { inComponent, EVENT_ONSLIDEEXIT }; @@ -335,10 +335,10 @@ void CComponentManager::applyQueuedChanges(TElement *component) } void CComponentManager::queueChange(TElement *component, TElement *target, const char *attName, - const char *value) + const char *value, TAttributeHash attrHash) { CQmlElementHelper::TypedAttributeAndValue attributeAndValue - = CQmlElementHelper::getTypedAttributeAndValue(target, attName, value); + = CQmlElementHelper::getTypedAttributeAndValue(target, attName, value, attrHash); if (attributeAndValue.attribute.m_Hash != 0) { auto &targetQueue = m_queuedChanges[component]; auto &attQueue = targetQueue[target]; |