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
Kalendar
Commits
e3da340f
Commit
e3da340f
authored
Nov 15, 2021
by
Claudio Cambra
Browse files
Stop emitting layoutchanged on sort, which stops view resetting every time you do something
parent
9504c9ff
Pipeline
#97964
failed with stage
in 5 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/todosortfilterproxymodel.cpp
View file @
e3da340f
...
...
@@ -184,12 +184,8 @@ void TodoSortFilterProxyModel::setFilter(const QVariantMap &filter)
void
TodoSortFilterProxyModel
::
sortTodoModel
(
int
column
,
bool
ascending
)
{
Q_EMIT
layoutAboutToBeChanged
();
auto
order
=
ascending
?
Qt
::
AscendingOrder
:
Qt
::
DescendingOrder
;
this
->
sort
(
column
,
order
);
Q_EMIT
layoutChanged
();
}
void
TodoSortFilterProxyModel
::
filterTodoName
(
QString
name
,
int
showCompleted
)
...
...
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