summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-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);