[new compiler] Add support for QML list models
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 15 Jan 2014 16:29:04 +0000 (17:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 20 Jan 2014 14:10:00 +0000 (15:10 +0100)
commitae0a2ea25714af603babe5aa0de364d1ebae1170
tree91a0845dd397af79b30341aae64f6c24f0f43197
parentf8176d72ac491469ccf0288cbb86c0ccc12fb47b
[new compiler] Add support for QML list models

List model definitions make heavy use of custom parsers, which requires AST
access as well as a general port to the new QQmlCustomParser API.

Additional fixes in the custom parser support were needed to pass all tests:

 * Fix support for AcceptsSignalHandlers and AcceptsAttachedProperties
 * Don't call setCustomData unless the compiler generated data earlier

Change-Id: Ic42f8a890391267c94f63d35f055b60fdbf3c83d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
13 files changed:
src/qml/compiler/qqmlcodegenerator.cpp
src/qml/compiler/qqmlcodegenerator_p.h
src/qml/compiler/qqmltypecompiler.cpp
src/qml/compiler/qqmltypecompiler_p.h
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlcompiler_p.h
src/qml/qml/qqmlcustomparser.cpp
src/qml/qml/qqmlcustomparser_p.h
src/qml/qml/qqmlobjectcreator.cpp
src/qml/types/qqmllistmodel.cpp
src/qml/types/qqmllistmodel_p.h
tests/auto/qml/qqmllanguage/testtypes.cpp
tests/auto/qml/qqmllanguage/testtypes.h