From 3b8c3c1b1e2d05d09aca2de0b0bf922fb9530b0d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 9 Oct 2007 22:32:54 +0000 Subject: Allow filtering of items also for the column view. A filtering of directories is not done yet, but with the latest updates of the column view this could be added now (but it's more a question whether we really want this...). svn path=/trunk/KDE/kdebase/apps/; revision=723536 --- src/dolphincolumnwidget.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/dolphincolumnwidget.h') diff --git a/src/dolphincolumnwidget.h b/src/dolphincolumnwidget.h index 03e082658..7636655a9 100644 --- a/src/dolphincolumnwidget.h +++ b/src/dolphincolumnwidget.h @@ -84,6 +84,19 @@ public: */ void updateBackground(); + /** + * Filters the currently shown items by \a nameFilter. All items + * which contain the given filter string will be shown. + */ + void setNameFilter(const QString& nameFilter); + + /** + * Returns the currently used name filter. All items + * which contain the name filter will be shown. + */ + QString nameFilter() const; + + protected: virtual QStyleOptionViewItem viewOptions() const; virtual void dragEnterEvent(QDragEnterEvent* event); -- cgit v1.3