diff options
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodelrolesupdater.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodelrolesupdater.h b/src/kitemviews/kfileitemmodelrolesupdater.h index c520a23e8..cabb00391 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.h +++ b/src/kitemviews/kfileitemmodelrolesupdater.h @@ -32,6 +32,7 @@ #include <QSize> #include <QStringList> +class KDirWatch; class KFileItemModel; class KJob; class QPixmap; @@ -161,6 +162,13 @@ private slots: void applyChangedNepomukRoles(const Nepomuk::Resource& resource); + /** + * Is invoked if a directory watched by KDirWatch got dirty. Updates + * the "isExpandable"- and "size"-roles of the item that matches to + * the given path. + */ + void slotDirWatchDirty(const QString& path); + private: /** * Updates the roles for the given item ranges. The roles for the currently @@ -262,6 +270,9 @@ private: QTimer* m_changedItemsTimer; QSet<KFileItem> m_changedItems; + KDirWatch* m_dirWatcher; + mutable QSet<QString> m_watchedDirs; // Required as sadly KDirWatch does not offer a getter method + // to get all watched directories. #ifdef HAVE_NEPOMUK Nepomuk::ResourceWatcher* m_nepomukResourceWatcher; mutable QHash<QUrl, KUrl> m_nepomukUriItems; |
