diff options
| author | Peter Penz <[email protected]> | 2011-09-10 18:08:03 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-10 18:11:09 +0200 |
| commit | ff243261742ecd70fb9e417614e757b5956c04aa (patch) | |
| tree | 5ea6591846826b8b7f26179dc69bd2fab06c8ce5 /src/kitemviews/kfileitemmodel.cpp | |
| parent | c7272df5c17c804fd379e4bac2758850f03695da (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/kfileitemmodel.cpp')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.cpp | 6 |
1 files changed, 3 insertions, 3 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() |
