]> cloud.milkyroute.net Git - dolphin.git/commit
Replace setExpanded(const QSet<KUrl>&) by expandParentItems(const KUrl&)
authorFrank Reininghaus <frank78ac@googlemail.com>
Fri, 3 Feb 2012 18:09:42 +0000 (19:09 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 5 Feb 2012 14:59:59 +0000 (15:59 +0100)
commitd0933155e2dc179cde49b4306ff7feee9ca47697
tree80ec968e4538193d751b28f44d796db6d4f462fc
parent72af3125a824722d9875d202dd156cd3f7d8fc46
Replace setExpanded(const QSet<KUrl>&) by expandParentItems(const KUrl&)

The use case of this function (Folders Panel) requires the expansion of
the parent items of a single URL, so it's not needed to handle a full
set of URLs in this function. Moreover, the issue that not only the
parents, but also the URLs themselves were expanded is fixed by this
commit.
(cherry picked from commit 89082ca391807abdc26d8985efe6b4c27183a9b1)
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/panels/folders/folderspanel.cpp
src/tests/kfileitemmodeltest.cpp