forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user