┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
-rw-r--r--src/kitemviews/kfileitemmodel.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h
index 7d10aad8e..8ccff95e8 100644
--- a/src/kitemviews/kfileitemmodel.h
+++ b/src/kitemviews/kfileitemmodel.h
@@ -194,6 +194,16 @@ private:
bool useMaximumUpdateInterval() const;
+ QList<QPair<int, QVariant> > nameRoleGroups() const;
+ QList<QPair<int, QVariant> > sizeRoleGroups() const;
+ QList<QPair<int, QVariant> > dateRoleGroups() const;
+ QList<QPair<int, QVariant> > permissionRoleGroups() const;
+ QList<QPair<int, QVariant> > ownerRoleGroups() const;
+ QList<QPair<int, QVariant> > groupRoleGroups() const;
+ QList<QPair<int, QVariant> > typeRoleGroups() const;
+ QList<QPair<int, QVariant> > destinationRoleGroups() const;
+ QList<QPair<int, QVariant> > pathRoleGroups() const;
+
private:
QWeakPointer<KDirLister> m_dirLister;
@@ -214,6 +224,9 @@ private:
KFileItemList m_pendingItemsToInsert;
bool m_pendingEmitLoadingCompleted;
+ // Cache for KFileItemModel::groups()
+ mutable QList<QPair<int, QVariant> > m_groups;
+
// Stores the smallest expansion level of the root-URL. Is required to calculate
// the "expansionLevel" role in an efficient way. A value < 0 indicates that
// it has not been initialized yet.