]> cloud.milkyroute.net Git - dolphin.git/commit
Make expandedParentsCount() work without accessing the data hash
authorFrank Reininghaus <frank78ac@googlemail.com>
Sat, 7 Sep 2013 16:06:45 +0000 (18:06 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sat, 7 Sep 2013 16:06:53 +0000 (18:06 +0200)
commit7e30467679a403f953e2547894febb51e8a3d78b
treec8be61598aef5796ae2c67633b5842267788785f
parent1848854c6dc909ba9eea58de41112a5b444a27cf
Make expandedParentsCount() work without accessing the data hash

The idea is that we no longer assume that the "expandedParentsCount"
for each item will be stored in the QHash. It is only accessed for
items which are expanded, and which are not top-level items (i.e.,
which have an expandedParentsCount > 1).

Some unit tests are added to improve the coverage of the affected code.

REVIEW: 112562
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/tests/kfileitemmodeltest.cpp