diff options
| author | Dawit Alemayehu <[email protected]> | 2010-11-01 16:56:47 +0000 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2010-11-01 16:56:47 +0000 |
| commit | 0ad893ae2b2bcc88c56587b57d227d65e593d2db (patch) | |
| tree | b05a871175bfddb9d9fd2d3f9bf108875ddd1909 /src/views | |
| parent | 3aa13c7a247af8959c87121ad142662440300a13 (diff) | |
Added implementation of the FileInfoExtension to allow KPart plugins to obtain such information
svn path=/trunk/KDE/kdebase/apps/; revision=1191993
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 |
