From e1c74b05fdae664aa9211cba3afb7993b51ec23b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 28 Aug 2009 21:53:18 +0000 Subject: 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 --- src/dolphincontroller.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 71e615910..c87aaa43a 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -70,6 +70,7 @@ class QPoint; * - setShowHiddenFiles() * - setShowPreview() * - indicateActivationChange() + * - setNameFilter() * - setZoomLevel() */ class LIBDOLPHINPRIVATE_EXPORT DolphinController : public QObject @@ -196,6 +197,12 @@ public: void setZoomLevel(int level); int zoomLevel() const; + /** + * Sets the name filter to \a and emits the signal nameFilterChanged(). + */ + void setNameFilter(const QString& nameFilter); + QString nameFilter() const; + /** * Tells the view implementation to zoom out by emitting the signal zoomOut() * and is invoked by the abstract Dolphin view. @@ -373,6 +380,12 @@ signals: */ void viewportEntered(); + /** + * Is emitted if the view should respect the name filter \a nameFilter. The view + * implementation must connect to this signal if it supports name filters. + */ + void nameFilterChanged(const QString& nameFilter); + /** * Is emitted if the view should change the zoom to \a level. The view implementation * must connect to this signal if it supports zooming. @@ -389,6 +402,7 @@ private slots: private: int m_zoomLevel; + QString m_nameFilter; static Qt::MouseButtons m_mouseButtons; // TODO: this is a workaround until Qt-issue 176832 has been fixed KUrl m_url; DolphinView* m_dolphinView; -- cgit v1.3