diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-02-10 05:31:40 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-02-10 06:32:41 (GMT) |
commit | db8462b107ad3dbf13c1eed43588fb1d9420f4ad (patch) | |
tree | e854eecbeffee9e93cafaf3c5fd183d33fd0f00d /doc/src/snippets/code/doc_src_qtscript.cpp | |
parent | 32b68e009da38a2c85ceacce72c919606331522c (diff) | |
download | Qt-db8462b107ad3dbf13c1eed43588fb1d9420f4ad.zip Qt-db8462b107ad3dbf13c1eed43588fb1d9420f4ad.tar.gz Qt-db8462b107ad3dbf13c1eed43588fb1d9420f4ad.tar.bz2 |
PathView items were not correctly updated when rootIndex changed.
PathView got confused because it queried the model when removing
items due to the rootIndex change. This caused new items to be added
since the model->count() was not zero (it was the count for the new
rootIndex). Calculate the PathView modelCount similarly to the other
views (rather than querying the model) and correctly handle the
modelCount being set to zero.
Change-Id: I9e4fb27c14aa8c77ad37ff01d95c123f909db20d
Task-number: QTBUG-16366
Reviewed-by: Bea Lam
Diffstat (limited to 'doc/src/snippets/code/doc_src_qtscript.cpp')
0 files changed, 0 insertions, 0 deletions