[new compiler] Finish support for initializing list properties
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 16 Sep 2013 15:25:53 +0000 (17:25 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 20 Sep 2013 12:26:43 +0000 (14:26 +0200)
commitf7cd6238ada2745eea13ceff168e7d65b7263866
tree5c91c251eb3c2ddf1d56dae4ede28af3539b2345
parent2b832d20185aff91dfa0515cc3f9268240c917a7
[new compiler] Finish support for initializing list properties

Setting a value on a list property is always just appending to the list instead
of replacing it. Based on that, initializing list properties with multiple
items is done with one binding per item to the same list property. So

    myList: [ Item{}, Item{} ]

is mapped to

    myList: Item {}
    myList: Item {}

Change-Id: Iadc048ab3a8d73ac824aa6b2ae5dec33731fa362
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qqmlcodegenerator.cpp
src/qml/compiler/qqmlcodegenerator_p.h
src/qml/qml/qqmlobjectcreator.cpp
src/qml/qml/qqmlobjectcreator_p.h