diff options
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r-- | qt-models/filtermodels.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 3cae58e80..25344b712 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -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; } |