Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM EventViews
Commits
b2ff73ab
Commit
b2ff73ab
authored
Mar 06, 2022
by
Laurent Montel
Browse files
Port to setFilterRegularExpression
parent
f75ec56e
Pipeline
#145934
passed with stage
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/todo/todoview.cpp
View file @
b2ff73ab
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment