┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-09-10 18:08:03 +0200
committerPeter Penz <[email protected]>2011-09-10 18:11:09 +0200
commitff243261742ecd70fb9e417614e757b5956c04aa (patch)
tree5ea6591846826b8b7f26179dc69bd2fab06c8ce5 /src/kitemviews
parentc7272df5c17c804fd379e4bac2758850f03695da (diff)
Provide KVersionControlPlugin version 2
Based on the work of Vishesh Yadav some extensions where required for the KVersionControlPlugin interface that have found there way now into KVersionControlPlugin2. Beside some interface cleanups it is now possible that a version control plugin may also provide context actions for directories or files that are not versioned yet. REVIEW: 102541
Diffstat (limited to 'src/kitemviews')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp6
-rw-r--r--src/kitemviews/kfileitemmodel.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index ff0c4a02d..c0287340e 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -223,13 +223,13 @@ int KFileItemModel::index(const KFileItem& item) const
return m_items.value(item.url(), -1);
}
-KUrl KFileItemModel::rootDirectory() const
+KFileItem KFileItemModel::rootItem() const
{
const KDirLister* dirLister = m_dirLister.data();
if (dirLister) {
- return dirLister->url();
+ return dirLister->rootItem();
}
- return KUrl();
+ return KFileItem();
}
void KFileItemModel::clear()
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h
index 5d75329d1..160817043 100644
--- a/src/kitemviews/kfileitemmodel.h
+++ b/src/kitemviews/kfileitemmodel.h
@@ -97,9 +97,9 @@ public:
int index(const KFileItem& item) const;
/**
- * @return Root directory of all items.
+ * @return Root item of all items.
*/
- KUrl rootDirectory() const;
+ KFileItem rootItem() const;
/**
* Clears all items of the model.