From b8c718a6fd9810f9e91303ed50402de4ab417a49 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 6 Sep 2011 23:42:42 +0200 Subject: First step to reactivate version control plugin functionality - Add a DolphinFileItemListWidget that provides icon-overlays and colored text for the version state (implementation is missing yet) - Allow KFileItemListWidget to have custom text colors - Update interface of VersionControlObserver to work with KFileItemModel instead of the old model-interface. --- src/kitemviews/kfileitemmodel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/kitemviews/kfileitemmodel.cpp') diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 401ba218d..2a52de986 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -213,6 +213,15 @@ int KFileItemModel::index(const KFileItem& item) const return m_items.value(item, -1); } +KUrl KFileItemModel::rootDirectory() const +{ + const KDirLister* dirLister = m_dirLister.data(); + if (dirLister) { + return dirLister->url(); + } + return KUrl(); +} + void KFileItemModel::clear() { slotClear(); -- cgit v1.3