Hide unimplemented components from search

Those fields are not ready yet, hide them.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2018-11-16 15:23:39 +01:00 committed by Dirk Hohndel
parent 201f0c8f89
commit 705e61b62c
3 changed files with 16 additions and 1 deletions

View file

@ -68,6 +68,12 @@ namespace {
}
return true;
}
// TODO: Finish this iimplementation.
bool hasEquipment(const QStringList& equipment, const struct dive *d)
{
return true;
}
}
MultiFilterSortModel *MultiFilterSortModel::instance()
@ -129,6 +135,9 @@ bool MultiFilterSortModel::showDive(const struct dive *d) const
if (!hasLocation(filterData.location, d))
return false;
if (!hasEquipment(filterData.equipment, d))
return false;
return true;
}