From 5f02a3e9cec038aa25aa60a7b1041ec8218155ea Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 23 Dec 2011 23:05:08 +0100 Subject: Introduce "isExpandable" role The role is used to determine whether a directory can be expanded at all. This is e.g. not the case if a directory has 0 items or the target-URL is different from the item-URL. The expansion toggle will get hidden if a directory is not expandable. CCBUG: 288521 --- src/kitemviews/kfileitemmodelrolesupdater.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kitemviews/kfileitemmodelrolesupdater.h') diff --git a/src/kitemviews/kfileitemmodelrolesupdater.h b/src/kitemviews/kfileitemmodelrolesupdater.h index 065f069c8..b7d8ceab0 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.h +++ b/src/kitemviews/kfileitemmodelrolesupdater.h @@ -157,7 +157,7 @@ private: KFileItemList sortedItems(const QSet& items) const; - static int subDirectoriesCount(const QString& path); + int subDirectoriesCount(const QString& path) const; private: // Property for setPaused()/isPaused(). -- cgit v1.3