diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-17 15:16:44 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-19 21:13:40 -0800 |
commit | cbd98edb73e26b3b3d9068823d9155c61cb3a9b2 (patch) | |
tree | e16e114d5995858aef8339059a416c8298a4cb22 /qt-models/filtermodels.cpp | |
parent | 669ca76b086ff182645952894446ef706f6ed401 (diff) | |
download | subsurface-cbd98edb73e26b3b3d9068823d9155c61cb3a9b2.tar.gz |
Cleanup: remove MultiFilterSortModel::filterChanged()
Nobody was calling this function.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r-- | qt-models/filtermodels.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 399b2608f..37578abc1 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -199,14 +199,6 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s return m->data(index0, DiveTripModelBase::SHOWN_ROLE).value<bool>(); } -void MultiFilterSortModel::filterChanged(const QModelIndex &from, const QModelIndex &to, const QVector<int> &roles) -{ - // Only redo the filter if a checkbox changed. If the count of an entry changed, - // we do *not* want to recalculate the filters. - if (roles.contains(Qt::CheckStateRole)) - myInvalidate(); -} - void MultiFilterSortModel::myInvalidate() { QAbstractItemModel *m = sourceModel(); |