From d0933155e2dc179cde49b4306ff7feee9ca47697 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Fri, 3 Feb 2012 19:09:42 +0100 Subject: Replace setExpanded(const QSet&) 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.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kfileitemmodel.h') diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index ff816c85c..a792b089f 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -150,9 +150,9 @@ public: void restoreExpandedUrls(const QSet& urls); /** - * Expands all parent-items of each URL given by \a urls. + * Expands all parent-items of \a url. */ - void setExpanded(const QSet& urls); + void expandParentItems(const KUrl& url); void setNameFilter(const QString& nameFilter); QString nameFilter() const; -- cgit v1.3.1