┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontroller.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-08-28 21:53:18 +0000
committerPeter Penz <[email protected]>2009-08-28 21:53:18 +0000
commite1c74b05fdae664aa9211cba3afb7993b51ec23b (patch)
tree3f8a7a4dc75f2e27f8bbb85ec058fd1e59b1888f /src/dolphincontroller.h
parent8d31eca0e0ee89c74318af0bc8a79c2d17e63187 (diff)
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
Diffstat (limited to 'src/dolphincontroller.h')
-rw-r--r--src/dolphincontroller.h14
1 files changed, 14 insertions, 0 deletions
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
@@ -197,6 +198,12 @@ public:
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.
*/
@@ -374,6 +381,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;