From 0ad893ae2b2bcc88c56587b57d227d65e593d2db Mon Sep 17 00:00:00 2001 From: Dawit Alemayehu Date: Mon, 1 Nov 2010 16:56:47 +0000 Subject: Added implementation of the FileInfoExtension to allow KPart plugins to obtain such information svn path=/trunk/KDE/kdebase/apps/; revision=1191993 --- src/views/dolphinview.cpp | 5 +++++ src/views/dolphinview.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src/views') 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 -- cgit v1.3