Commit 24cbb0a6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Assign filter

parent 43d0be34
......@@ -800,6 +800,14 @@ void Widget::groupSortDirectionSelected(QAction *action)
d->mView->reload();
}
void Widget::setFilter(Filter *filter)
{
resetFilter();
d->mFilter = filter;
// TODO
d->mView->model()->setFilter(d->mFilter);
}
void Widget::resetFilter()
{
delete d->mFilter;
......
......@@ -32,7 +32,7 @@ class GroupHeaderItem;
class MessageItem;
class StorageModel;
class View;
class Filter;
/**
* Provides a widget which has the messagelist and the most important helper widgets,
* like the search line and the comboboxes for changing status filtering, aggregation etc.
......@@ -121,6 +121,7 @@ public:
void aggregationMenuAboutToShow(QMenu *menu);
Q_REQUIRED_RESULT MessageList::Core::QuickSearchLine::SearchOptions currentOptions() const;
void setFilter(Filter *filter);
public Q_SLOTS:
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment