TaskModel: Bit of code cleanup

Do not send rowsRemoved before source model has removed the rows from
its data.
Add some QTC_ASSERTS and comments.
Replace trivial slot by lambda.

Change-Id: I7a0df404f757fca5f7724be66e516824ecd292dd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Eike Ziller
2018-06-27 15:26:46 +02:00
parent 85b0f4dc91
commit 702d6a6914
2 changed files with 20 additions and 18 deletions

View File

@@ -159,7 +159,6 @@ private:
void handleNewRows(const QModelIndex &index, int first, int last);
void handleRowsAboutToBeRemoved(const QModelIndex &index, int first, int last);
void handleDataChanged(const QModelIndex &top, const QModelIndex &bottom);
void handleReset();
QModelIndex mapToSource(const QModelIndex &index) const;
void invalidateFilter();