diff options
| author | Peter Penz <[email protected]> | 2011-11-30 00:18:22 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-11-30 00:24:33 +0100 |
| commit | 7b8fbf737496e44e7676a437f000377d737dfd9c (patch) | |
| tree | 5b64891095993e59b268e04dc44db77ded1fd030 /src/views/dolphinview.cpp | |
| parent | 3719ce7d2a7f4ee6a0585763139eea8f7786630c (diff) | |
Reimplement name-filtering
The filtering of items has not been implemented yet in
the KFileItemModel of the new view-engine. The patch brings back
this functionality again, but some minor issues are open:
- When filtering trees expanded directories should only get
hidden if no child is visible
- Regular expressions are not supported yet (they have not been
supported in Dolphin 1.x but it is now quite simple to implement).
- When filtering previews and removing the filter it might be
possible that the preview is not shown (is most probably an
an already existing bug in KFileItemModelRolesUpdater).
BUG: 287642
FIXED-IN: 4.8.0
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 829e1a302..857aae395 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -459,13 +459,12 @@ void DolphinView::refresh() void DolphinView::setNameFilter(const QString& nameFilter) { - Q_UNUSED(nameFilter); - //m_viewModeController->setNameFilter(nameFilter); + fileItemModel()->setNameFilter(nameFilter); } QString DolphinView::nameFilter() const { - return QString(); //m_viewModeController->nameFilter(); + return fileItemModel()->nameFilter(); } void DolphinView::calculateItemCount(int& fileCount, |
