aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/filtermodels.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-11-13 17:07:05 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-13 12:04:44 -0800
commit88d19bca6cebfab88736e892b20c2da0fc67abcf (patch)
tree6f7a8c72fe645523365c19fa13d447ae46069cd9 /qt-ui/filtermodels.cpp
parent16e44b31d3403588041bc1498371cb5db629b0bc (diff)
downloadsubsurface-88d19bca6cebfab88736e892b20c2da0fc67abcf.tar.gz
Added skeleton of the Suits Filter.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/filtermodels.cpp')
-rw-r--r--qt-ui/filtermodels.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/qt-ui/filtermodels.cpp b/qt-ui/filtermodels.cpp
index 35f9b4103..da123799f 100644
--- a/qt-ui/filtermodels.cpp
+++ b/qt-ui/filtermodels.cpp
@@ -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)
{
}