Fix performance regression of parent setting during QML object creation
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 31 Mar 2014 07:58:13 +0000 (09:58 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 31 Mar 2014 10:03:57 +0000 (12:03 +0200)
commit790268130926f318c007b41439c9d60463666e34
treead182dcf6fd0eaed4e48b32d1ade176f12a33bf7
parentbd54c80e4b60f922bf29154e8c1131c274a603a8
Fix performance regression of parent setting during QML object creation

This showed up in the profiles again: In QML we create a lot of objects
with many children and sending a child event each time is expensive. That's
why the VME didn't do that and hadn't done so in ages. This patch restores
that behavior and aspect of loading performance.

Change-Id: I5078fe330d913dc832b284aaecf031152dc80802
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp
tests/auto/qml/qqmllanguage/testtypes.cpp
tests/auto/qml/qqmllanguage/testtypes.h
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp