summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r--qt-models/filtermodels.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index cbb83d06f..452b1077f 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -78,6 +78,9 @@ SuitsFilterModel::SuitsFilterModel(QObject *parent) : QStringListModel(parent)
bool SuitsFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
{
+ Q_UNUSED(index0);
+ Q_UNUSED(sourceModel);
+
if (!anyChecked) {
return true;
}
@@ -153,6 +156,9 @@ void TagFilterModel::repopulate()
bool TagFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
{
+ Q_UNUSED(index0);
+ Q_UNUSED(sourceModel);
+
// If there's nothing checked, this should show everything
if (!anyChecked) {
return true;
@@ -188,6 +194,9 @@ BuddyFilterModel::BuddyFilterModel(QObject *parent) : QStringListModel(parent)
bool BuddyFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
{
+ Q_UNUSED(index0);
+ Q_UNUSED(sourceModel);
+
// If there's nothing checked, this should show everything
if (!anyChecked) {
return true;
@@ -246,6 +255,9 @@ LocationFilterModel::LocationFilterModel(QObject *parent) : QStringListModel(par
bool LocationFilterModel::doFilter(struct dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
{
+ Q_UNUSED(index0);
+ Q_UNUSED(sourceModel);
+
if (!anyChecked) {
return true;
}