diff options
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 9291ea8b9..4e76c87c2 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -304,6 +304,21 @@ public: */ void updateView(const KUrl& url, const KUrl& rootUrl); + /** + * Filters the currently shown items by \a nameFilter. All items + * which contain the given filter string will be shown. + */ + void setNameFilter(const QString& nameFilter); + + /** + * Calculates the number of currently shown files into + * \a fileCount and the number of folders into \a folderCount. + * It is recommend using this method instead of asking the + * directory lister or the model directly, as it takes + * filtering and hierarchical previews into account. + */ + void calculateItemCount(int& fileCount, int& folderCount); + public slots: /** * Changes the directory to \a url. If the current directory is equal to @@ -319,6 +334,7 @@ public slots: */ void changeSelection(const KFileItemList& selection); + signals: /** * Is emitted if the view has been activated by e. g. a mouse click. |
