Fix QQmlDelegateModel ignoring layoutChange in certain situations
authorDan Vrátil <dan@progdan.cz>
Mon, 16 Jun 2014 12:10:09 +0000 (14:10 +0200)
committerGunnar Sletta <gunnar.sletta@jollamobile.com>
Sun, 29 Jun 2014 16:23:03 +0000 (18:23 +0200)
commit692c0d3526b4bd5e5b17e17b4a6547046c2bfcbc
tree940a3e84949468a47d1275aa38c2944d212ec9c2
parente6bf3d444f3818145d7807ad37b6a0ab9f8d4a47
Fix QQmlDelegateModel ignoring layoutChange in certain situations

Fix a regression introduced by commit a0aefe1 which caused the model to
ignore layout changes if d->m_adaptorModel.rootIndex was just a descendant
of any of the parent indexes, or when no parent indexes at all were provided
in the notification.

Task-number: QTBUG-39492
Change-Id: I4c97929d25ef75947ccfcbbe5bc234096689c58d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/qml/types/qqmldelegatemodel.cpp
src/qml/types/qqmldelegatemodel_p.h
tests/auto/quick/qquicklistview/data/qtbug39492.qml [new file with mode: 0644]
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp