No longer apply pending changes when accessing ItemView properties
authorAlan Alpert <aalpert@blackberry.com>
Thu, 11 Apr 2013 23:57:19 +0000 (16:57 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 26 Apr 2013 19:17:42 +0000 (21:17 +0200)
commit53e317468626284fe26877659dff551ce3bc0e55
treebb129a2df33f3a283bcb7e6f33be6b00659b4467
parent8563adb737cec5d440197ddbd514fe201c5f18ff
No longer apply pending changes when accessing ItemView properties

Applying changes in the getters can lead to binding loops, and is
currently inconsistently applied. Removing the applyPendingChanges calls
from remaining getters, and adding a forceLayout() function for cases
where the immediate-apply behavior is needed.

Task-number:  QTBUG-30555
Parts-of-patch-by: Albert Astals Cid
Change-Id: I64632601e02f2a53060296ab7739577a749d916f
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Reviewed-by: Albert Astals Cid <albert.astals@canonical.com>
src/quick/items/qquickgridview.cpp
src/quick/items/qquickitemsmodule.cpp
src/quick/items/qquickitemview.cpp
src/quick/items/qquickitemview_p.h
src/quick/items/qquicklistview.cpp
tests/auto/qmltest/listview/tst_listview.qml
tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
tests/auto/quick/qquicklistview/data/delayedChanges.qml [new file with mode: 0644]
tests/auto/quick/qquicklistview/data/emptymodel.qml
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
tests/auto/quick/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp