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
0c8f9b87
Commit
0c8f9b87
authored
Nov 01, 2021
by
Claudio Cambra
Browse files
Tasks view no longer resets on everything
parent
3e27867f
Pipeline
#92997
passed with stage
in 4 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/TreeView/InternalTreeListView.qml
View file @
0c8f9b87
...
...
@@ -17,7 +17,7 @@ ListView {
property
alias
descendantsModel
:
descendantsModel
property
alias
expandsByDefault
:
descendantsModel
.
expandsByDefault
add
:
Transition
{
/*
add: Transition {
// NumberAnimation behaves better than animators here
NumberAnimation {
property: "opacity"
...
...
@@ -26,7 +26,7 @@ ListView {
duration: Kirigami.Units.longDuration
easing.type: Easing.InOutQuad
}
}
}
*/
addDisplaced
:
Transition
{
NumberAnimation
{
property
:
"
y
"
...
...
src/todosortfilterproxymodel.cpp
View file @
0c8f9b87
...
...
@@ -14,24 +14,19 @@ TodoSortFilterProxyModel::TodoSortFilterProxyModel(QObject *parent)
mRefreshTimer
.
setSingleShot
(
true
);
auto
resetModel
=
[
this
]
{
auto
sortTimer
=
[
this
]
{
if
(
!
mRefreshTimer
.
isActive
())
{
mRefreshTimer
.
start
(
50
);
}
};
connect
(
&
mRefreshTimer
,
&
QTimer
::
timeout
,
this
,
[
&
]()
{
beginResetModel
();
endResetModel
();
sortTodoModel
(
m_sortColumn
,
m_sortAscending
);
});
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
dataChanged
,
this
,
resetModel
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
layoutChanged
,
this
,
resetModel
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
modelReset
,
this
,
resetModel
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
rowsInserted
,
this
,
resetModel
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
rowsMoved
,
this
,
resetModel
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
rowsRemoved
,
this
,
resetModel
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
dataChanged
,
this
,
sortTimer
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
rowsInserted
,
this
,
sortTimer
);
connect
(
m_extraTodoModel
,
&
KExtraColumnsProxyModel
::
rowsRemoved
,
this
,
sortTimer
);
}
bool
TodoSortFilterProxyModel
::
filterAcceptsRow
(
int
row
,
const
QModelIndex
&
sourceParent
)
const
...
...
Leonardo Sá
@leolimasa
mentioned in issue
#55 (closed)
·
Nov 02, 2021
mentioned in issue
#55 (closed)
mentioned in issue #55
Toggle commit list
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