Fix ListView components being unable to access context properties.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 7 Oct 2011 03:06:26 +0000 (13:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Oct 2011 03:55:18 +0000 (05:55 +0200)
commitcdf868033bbd7bf5a996c67fa56f8ac15e755115
tree2e39f31248a7845fe8105e538b0a9c2b8eb55f10
parentd517e9c541e5869e87006faeccd60be5690bee5b
Fix ListView components being unable to access context properties.

Where avaialable use the components creation context instead of the
views context as the root context for the new item.

Task-number: QTBUG-21865
Change-Id: I07e564548de57d58413dc0d7cd151bd8a90886e7
Reviewed-on: http://codereview.qt-project.org/6199
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 files changed:
src/declarative/items/qsgitemview.cpp
src/declarative/items/qsglistview.cpp
src/declarative/items/qsgvisualdatamodel.cpp
tests/auto/declarative/qsggridview/data/ComponentView.qml [new file with mode: 0644]
tests/auto/declarative/qsggridview/data/creationContext.qml [new file with mode: 0644]
tests/auto/declarative/qsggridview/tst_qsggridview.cpp
tests/auto/declarative/qsglistview/data/ComponentView.qml [new file with mode: 0644]
tests/auto/declarative/qsglistview/data/creationContext.qml [new file with mode: 0644]
tests/auto/declarative/qsglistview/tst_qsglistview.cpp
tests/auto/declarative/qsgpathview/data/ComponentView.qml [new file with mode: 0644]
tests/auto/declarative/qsgpathview/data/creationContext.qml [new file with mode: 0644]
tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp