mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
201f0c8f89
commit
705e61b62c
3 changed files with 16 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue