filter: internalize shown_dives in DiveFilter class

one piece of global state removed!

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-10-30 22:10:31 +01:00 committed by Dirk Hohndel
parent 51d0c42a5c
commit c53bab8965
4 changed files with 14 additions and 9 deletions

View file

@ -58,7 +58,7 @@ QHash<int, QByteArray> MobileListModelBase::roleNames() const
int MobileListModel::shown() const
{
return shown_dives;
return DiveFilter::instance()->shownDives();
}
int MobileListModelBase::columnCount(const QModelIndex &parent) const