summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-17 15:16:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-19 21:13:40 -0800
commitcbd98edb73e26b3b3d9068823d9155c61cb3a9b2 (patch)
treee16e114d5995858aef8339059a416c8298a4cb22
parent669ca76b086ff182645952894446ef706f6ed401 (diff)
downloadsubsurface-cbd98edb73e26b3b3d9068823d9155c61cb3a9b2.tar.gz
Cleanup: remove MultiFilterSortModel::filterChanged()
Nobody was calling this function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--qt-models/filtermodels.cpp8
-rw-r--r--qt-models/filtermodels.h1
2 files changed, 0 insertions, 9 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();
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h
index 3670528e6..65bab27df 100644
--- a/qt-models/filtermodels.h
+++ b/qt-models/filtermodels.h
@@ -71,7 +71,6 @@ slots:
void startFilterDiveSites(QVector<dive_site *> ds);
void setFilterDiveSite(QVector<dive_site *> ds);
void stopFilterDiveSites();
- void filterChanged(const QModelIndex &from, const QModelIndex &to, const QVector<int> &roles);
void resetModel(DiveTripModelBase::Layout layout);
void filterDataChanged(const FilterData &data);
void divesAdded(struct dive_trip *, bool, const QVector<dive *> &dives);