Mobile/filtering: add count of filtered dives to search bar

The count in the trip headers is still that for the complete trip and therefore
misleading.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-10-17 06:28:53 -04:00
parent 7275ee6cd7
commit 6e7867dd2b
3 changed files with 37 additions and 8 deletions

View file

@ -20,6 +20,11 @@ void DiveListSortModel::resetFilter()
setFilterRegExp("");
}
int DiveListSortModel::shown()
{
return rowCount();
}
int DiveListSortModel::getDiveId(int idx)
{
DiveListModel *mySourceModel = qobject_cast<DiveListModel *>(sourceModel());