diff options
| author | Dawit Alemayehu <[email protected]> | 2012-09-03 17:53:03 -0400 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2012-09-05 11:25:37 -0400 |
| commit | 1bac8668d7492a2e363f609efd30366a4cf798b7 (patch) | |
| tree | e29d54716888cc08448839d0021068c4300f0af7 /src/views | |
| parent | bdd0b97662293bf5a9ecdedc46e0e4e48e6b237c (diff) | |
Implemented the new KParts' listing filter extension, KParts::ListingFilterExtension.
REVIEW: 106289
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 f2b0a5c8c..08e26c5d6 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. */ |
