diff options
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 5 | ||||
| -rw-r--r-- | src/views/dolphinview.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 346c7b691..8ed0d993e 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1458,4 +1458,9 @@ void DolphinView::restoreContentsPosition() } } +KFileItemList DolphinView::allItems() const +{ + return m_viewAccessor.dirLister()->items(); +} + #include "dolphinview.moc" diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 9d2032e9f..a06105cf3 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -324,6 +324,11 @@ public: */ void saveState(QDataStream& stream); + /** + * Returns all the items in the current view. + */ + KFileItemList allItems() const; + public slots: /** * Changes the directory to \a url. If the current directory is equal to |
