]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kfileitemmodelrolesupdater.h
Merge branch 'release/20.12'
[dolphin.git] / src / kitemviews / kfileitemmodelrolesupdater.h
index fb20f3de2f8bde6fe2b524b0bcecca1151049bff..09706a54a41da41b321587fc22ef1a3f2b83d93b 100644 (file)
@@ -152,6 +152,13 @@ public:
     void setLocalFileSizePreviewLimit(qlonglong size);
     qlonglong localFileSizePreviewLimit() const;
 
+    /**
+     * If set to true, directories contents are scanned to determine their size
+     * Default true
+     */
+    void setScanDirectories(bool enabled);
+    bool scanDirectories() const;
+
 private slots:
     void slotItemsInserted(const KItemRangeList& itemRanges);
     void slotItemsRemoved(const KItemRangeList& itemRanges);
@@ -256,11 +263,6 @@ private:
     bool applyResolvedRoles(int index, ResolveHint hint);
     QHash<QByteArray, QVariant> rolesData(const KFileItem& item);
 
-    /**
-     * @return The number of items of the path \a path.
-     */
-    int subItemsCount(const QString& path) const;
-
     /**
      * Must be invoked if a property has been changed that affects
      * the look of the preview. Takes care to update all previews.
@@ -312,6 +314,7 @@ private:
     QSet<QByteArray> m_resolvableRoles;
     QStringList m_enabledPlugins;
     qulonglong m_localFileSizePreviewLimit;
+    bool m_scanDirectories;
 
     // Items for which the sort role still has to be determined.
     QSet<KFileItem> m_pendingSortRoleItems;
@@ -348,5 +351,3 @@ private:
 };
 
 #endif
-
-