diff options
| author | Peter Penz <[email protected]> | 2011-12-23 23:05:08 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-23 23:19:48 +0100 |
| commit | b2cb38214ec403dfc68e5231e0006fe59833515a (patch) | |
| tree | 77b78fd48a145d34ae0ffd911b605e3af3f9edac /src/kitemviews/kfileitemmodelrolesupdater.h | |
| parent | 2cafa66f00ef46c378c159d13319fea475070527 (diff) | |
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
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodelrolesupdater.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<KFileItem>& items) const; - static int subDirectoriesCount(const QString& path); + int subDirectoriesCount(const QString& path) const; private: // Property for setPaused()/isPaused(). |
