┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontroller.cpp
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.cpp
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.cpp')
-rw-r--r--src/dolphincontroller.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dolphincontroller.cpp b/src/dolphincontroller.cpp
index eaa27c0f4..47c661e83 100644
--- a/src/dolphincontroller.cpp
+++ b/src/dolphincontroller.cpp
@@ -31,6 +31,7 @@ Qt::MouseButtons DolphinController::m_mouseButtons = Qt::NoButton;
DolphinController::DolphinController(DolphinView* dolphinView) :
QObject(dolphinView),
m_zoomLevel(0),
+ m_nameFilter(),
m_url(),
m_dolphinView(dolphinView),
m_itemView(0)
@@ -119,6 +120,19 @@ void DolphinController::indicateActivationChange(bool active)
emit activationChanged(active);
}
+void DolphinController::setNameFilter(const QString& nameFilter)
+{
+ if (nameFilter != m_nameFilter) {
+ m_nameFilter = nameFilter;
+ emit nameFilterChanged(nameFilter);
+ }
+}
+
+QString DolphinController::nameFilter() const
+{
+ return m_nameFilter;
+}
+
void DolphinController::setZoomLevel(int level)
{
Q_ASSERT(level >= ZoomLevelInfo::minimumLevel());