Added skeleton of the Suits Filter.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-11-13 17:07:05 -02:00 committed by Dirk Hohndel
parent 16e44b31d3
commit 88d19bca6c
2 changed files with 38 additions and 0 deletions

View file

@ -67,8 +67,28 @@ CREATE_DATA_METHOD( CLASS, COUNTER_FUNCTION )
CREATE_COMMON_METHODS_FOR_FILTER(TagFilterModel, count_dives_with_tag);
CREATE_COMMON_METHODS_FOR_FILTER(BuddyFilterModel, count_dives_with_person);
CREATE_COMMON_METHODS_FOR_FILTER(LocationFilterModel, count_dives_with_location);
CREATE_COMMON_METHODS_FOR_FILTER(SuitsFilterModel, count_dives_with_location);
CREATE_INSTANCE_METHOD(MultiFilterSortModel);
SuitsFilterModel::SuitsFilterModel(QObject *parent): QStringListModel(parent)
{
}
bool SuitsFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
{
return false;
}
bool SuitsFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const
{
return false;
}
void SuitsFilterModel::repopulate()
{
}
TagFilterModel::TagFilterModel(QObject *parent) : QStringListModel(parent)
{
}