Commit b2ff73ab authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to setFilterRegularExpression

parent f75ec56e
Pipeline #145934 passed with stage
in 1 minute and 3 seconds
......@@ -189,7 +189,10 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
if (!mSidebarView) {
mQuickSearch = new TodoViewQuickSearch(calendar(), this);
mQuickSearch->setVisible(prefs->enableTodoQuickSearch());
connect(mQuickSearch, &TodoViewQuickSearch::searchTextChanged, mProxyModel, qOverload<const QString &>(&QSortFilterProxyModel::setFilterRegExp));
connect(mQuickSearch,
&TodoViewQuickSearch::searchTextChanged,
mProxyModel,
qOverload<const QString &>(&QSortFilterProxyModel::setFilterRegularExpression));
connect(mQuickSearch, &TodoViewQuickSearch::searchTextChanged, this, &TodoView::restoreViewState);
connect(mQuickSearch, &TodoViewQuickSearch::filterCategoryChanged, mProxyModel, &TodoViewSortFilterProxyModel::setCategoryFilter);
connect(mQuickSearch, &TodoViewQuickSearch::filterCategoryChanged, this, &TodoView::restoreViewState);
......
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