mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove MultiFilterSortModel::filterChanged()
Nobody was calling this function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
669ca76b08
commit
cbd98edb73
2 changed files with 0 additions and 9 deletions
|
@ -199,14 +199,6 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s
|
||||||
return m->data(index0, DiveTripModelBase::SHOWN_ROLE).value<bool>();
|
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()
|
void MultiFilterSortModel::myInvalidate()
|
||||||
{
|
{
|
||||||
QAbstractItemModel *m = sourceModel();
|
QAbstractItemModel *m = sourceModel();
|
||||||
|
|
|
@ -71,7 +71,6 @@ slots:
|
||||||
void startFilterDiveSites(QVector<dive_site *> ds);
|
void startFilterDiveSites(QVector<dive_site *> ds);
|
||||||
void setFilterDiveSite(QVector<dive_site *> ds);
|
void setFilterDiveSite(QVector<dive_site *> ds);
|
||||||
void stopFilterDiveSites();
|
void stopFilterDiveSites();
|
||||||
void filterChanged(const QModelIndex &from, const QModelIndex &to, const QVector<int> &roles);
|
|
||||||
void resetModel(DiveTripModelBase::Layout layout);
|
void resetModel(DiveTripModelBase::Layout layout);
|
||||||
void filterDataChanged(const FilterData &data);
|
void filterDataChanged(const FilterData &data);
|
||||||
void divesAdded(struct dive_trip *, bool, const QVector<dive *> &dives);
|
void divesAdded(struct dive_trip *, bool, const QVector<dive *> &dives);
|
||||||
|
|
Loading…
Add table
Reference in a new issue