summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r--qt-models/filtermodels.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index 7a1a8af7d..9736d3335 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -111,9 +111,6 @@ MultiFilterSortModel::MultiFilterSortModel(QObject *parent) : QSortFilterProxyMo
{
setFilterKeyColumn(-1); // filter all columns
setFilterCaseSensitivity(Qt::CaseInsensitive);
-
- connect(&diveListNotifier, &DiveListNotifier::divesAdded, this, &MultiFilterSortModel::divesAdded);
- connect(&diveListNotifier, &DiveListNotifier::divesDeleted, this, &MultiFilterSortModel::divesDeleted);
}
void MultiFilterSortModel::resetModel(DiveTripModelBase::Layout layout)
@@ -343,24 +340,6 @@ void MultiFilterSortModel::filterDataChanged(const FilterData &data)
myInvalidate();
}
-void MultiFilterSortModel::divesAdded(dive_trip *, bool, const QVector<dive *> &dives)
-{
- for (dive *d: dives) {
- if (!d->hidden_by_filter)
- ++shown_dives;
- }
- countsChanged();
-}
-
-void MultiFilterSortModel::divesDeleted(dive_trip *, bool, const QVector<dive *> &dives)
-{
- for (dive *d: dives) {
- if (!d->hidden_by_filter)
- --shown_dives;
- }
- countsChanged();
-}
-
void MultiFilterSortModel::countsChanged()
{
updateWindowTitle();