Improve component boundary detect in new compiler
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 30 Sep 2013 06:38:55 +0000 (08:38 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 30 Sep 2013 16:21:48 +0000 (18:21 +0200)
commit5b6687b7d94eb8ad140a2c150d3c978fe4d0af17
treedcdf10415e5dee20e2b854d62aa78674533894c1
parent385890bfdb165b397b29d3b62099f0687b358510
Improve component boundary detect in new compiler

Instead of going through the property cache and the potential creation
of a dynamic meta object to determine inequality with QQmlComponent::staticMetaObject,
we can simply use the QQmlType and its know metaObject directly to perform
the check. That's faster and more reliably.

Change-Id: If6484b059ec2bed234009755adf2fa3aa19b2b9f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp