diff options
| author | Peter Penz <[email protected]> | 2009-08-28 21:53:18 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-08-28 21:53:18 +0000 |
| commit | e1c74b05fdae664aa9211cba3afb7993b51ec23b (patch) | |
| tree | 3f8a7a4dc75f2e27f8bbb85ec058fd1e59b1888f /src/dolphinview.cpp | |
| parent | 8d31eca0e0ee89c74318af0bc8a79c2d17e63187 (diff) | |
Restore filtering of items. The DolphinView just tells the controller about the filter, the views (1:1 iconView + detailView, 1:n columnView) connect to the filter-changed signal and apply it to their proxy model.
svn path=/trunk/KDE/kdebase/apps/; revision=1016782
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index e9b33e9a1..2e41b4aa4 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -500,7 +500,7 @@ void DolphinView::updateView(const KUrl& url, const KUrl& rootUrl) void DolphinView::setNameFilter(const QString& nameFilter) { - m_viewAccessor.setNameFilter(nameFilter); + m_controller->setNameFilter(nameFilter); } void DolphinView::calculateItemCount(int& fileCount, @@ -1555,15 +1555,6 @@ QWidget* DolphinView::ViewAccessor::layoutTarget() const return itemView(); } -void DolphinView::ViewAccessor::setNameFilter(const QString& nameFilter) -{ - if (m_columnsContainer == 0) { - m_columnsContainer->setNameFilter(nameFilter); - } else { - proxyModel()->setFilterRegExp(nameFilter); - } -} - KUrl DolphinView::ViewAccessor::rootUrl() const { return (m_columnsContainer != 0) ? m_columnsContainer->rootUrl() : KUrl(); |
