summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-models/cylindermodel.cpp4
-rw-r--r--qt-models/filtermodels.cpp12
-rw-r--r--qt-models/yearlystatisticsmodel.cpp2
3 files changed, 16 insertions, 2 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp
index 1a587cee6..87edd5fe0 100644
--- a/qt-models/cylindermodel.cpp
+++ b/qt-models/cylindermodel.cpp
@@ -7,7 +7,9 @@
#include "diveplannermodel.h"
#include "gettextfromc.h"
-CylindersModel::CylindersModel(QObject *parent) : changed(false),
+CylindersModel::CylindersModel(QObject *parent) :
+ CleanerTableModel(parent),
+ changed(false),
rows(0)
{
// enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH};
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;
}
diff --git a/qt-models/yearlystatisticsmodel.cpp b/qt-models/yearlystatisticsmodel.cpp
index 955f0e8ee..f6579f499 100644
--- a/qt-models/yearlystatisticsmodel.cpp
+++ b/qt-models/yearlystatisticsmodel.cpp
@@ -108,7 +108,7 @@ QVariant YearStatisticsItem::data(int column, int role) const
return ret;
}
-YearlyStatisticsModel::YearlyStatisticsModel(QObject *parent)
+YearlyStatisticsModel::YearlyStatisticsModel(QObject *parent) : TreeModel(parent)
{
columns = COLUMNS;
update_yearly_stats();