From df6a28653e1439885a719081f086070111484c3b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 15 Jan 2012 10:39:11 +0100 Subject: Don't show a expanding-toggle in the Folders Panel if there are no subdirectories BUG: 290745 FIXED-IN: 4.8.0 --- src/kitemviews/kfileitemmodelrolesupdater.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/kitemviews/kfileitemmodelrolesupdater.h') diff --git a/src/kitemviews/kfileitemmodelrolesupdater.h b/src/kitemviews/kfileitemmodelrolesupdater.h index 5ed45a6ec..b3945d14d 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.h +++ b/src/kitemviews/kfileitemmodelrolesupdater.h @@ -164,7 +164,10 @@ private: KFileItemList sortedItems(const QSet& items) const; - int subDirectoriesCount(const QString& path) const; + /** + * @return The number of items of the path \a path. + */ + int subItemsCount(const QString& path) const; private: // Property for setPaused()/isPaused(). -- cgit v1.3