diff options
| author | Dawit Alemayehu <[email protected]> | 2012-09-03 17:53:03 -0400 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2012-09-05 11:31:38 -0400 |
| commit | 055ad286aac372d1542f6c64f32ae4f85d307eed (patch) | |
| tree | 3c433577a2b550f6f61865685ea920146316e8aa /src/views | |
| parent | 0016f150ae9ebd24fb95aaaf808f0017a5ebca63 (diff) | |
Implemented the new KParts' listing filter extension, KParts::ListingFilterExtension.
REVIEW: 106289
(cherry picked from commit cb79ee6a881e2b4418bccc22480e3e269e5b0af9)
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 10 | ||||
| -rw-r--r-- | src/views/dolphinview.h | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 80504154f..20edd6110 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -510,6 +510,16 @@ QString DolphinView::nameFilter() const return m_model->nameFilter(); } +void DolphinView::setMimeTypeFilters(const QStringList& filters) +{ + return m_model->setMimeTypeFilters(filters); +} + +QStringList DolphinView::mimeTypeFilters() const +{ + return m_model->mimeTypeFilters(); +} + QString DolphinView::statusBarText() const { QString summary; diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 10f63c57a..3f08c4480 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -238,6 +238,14 @@ public: QString nameFilter() const; /** + * Filters the currently shown items by \a filters. All items + * whose content-type matches those given by the list of filters + * will be shown. + */ + void setMimeTypeFilters(const QStringList& filters); + QStringList mimeTypeFilters() const; + + /** * Returns a textual representation of the state of the current * folder or selected items, suitable for use in the status bar. */ |
