┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-10-09 22:32:54 +0000
committerPeter Penz <[email protected]>2007-10-09 22:32:54 +0000
commit3b8c3c1b1e2d05d09aca2de0b0bf922fb9530b0d (patch)
treee692c3687b65e370a2469669752cf33022d8f675 /src/dolphincolumnview.h
parent1d4cfd16fd5ceb8f37400d4890807e3c56619971 (diff)
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
Diffstat (limited to 'src/dolphincolumnview.h')
-rw-r--r--src/dolphincolumnview.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphincolumnview.h b/src/dolphincolumnview.h
index 80228a84c..95a16a80d 100644
--- a/src/dolphincolumnview.h
+++ b/src/dolphincolumnview.h
@@ -24,6 +24,7 @@
#include <QAbstractItemView>
#include <QList>
+#include <QString>
#include <QStyleOption>
class DolphinColumnWidget;
@@ -69,6 +70,18 @@ public:
/** Returns the URL of the first column. */
KUrl rootUrl() const;
+ /**
+ * 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;
+
public slots:
/**
* Shows the column which represents the URL \a url. If the column