summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-08 02:28:00 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-08 20:58:21 -0800
commit19299b94d0ff07d4a49decaa45e7a69f1579caf1 (patch)
tree7875f947dd6bf447ba565163c86659f1bd415fc6 /qt-models
parent231f770e0cc2647ff2090f81811dc19d89f0f51a (diff)
downloadsubsurface-19299b94d0ff07d4a49decaa45e7a69f1579caf1.tar.gz
Silence warnings in tankinfomodel
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/tankinfomodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-models/tankinfomodel.cpp b/qt-models/tankinfomodel.cpp
index 0a06a3b08..b32437392 100644
--- a/qt-models/tankinfomodel.cpp
+++ b/qt-models/tankinfomodel.cpp
@@ -16,6 +16,7 @@ const QString &TankInfoModel::biggerString() const
bool TankInfoModel::insertRows(int row, int count, const QModelIndex &parent)
{
+ Q_UNUSED(row);
beginInsertRows(parent, rowCount(), rowCount());
rows += count;
endInsertRows();
@@ -24,6 +25,8 @@ bool TankInfoModel::insertRows(int row, int count, const QModelIndex &parent)
bool TankInfoModel::setData(const QModelIndex &index, const QVariant &value, int role)
{
+ //WARN Seems wrong, we need to check for role == Qt::EditRole
+ Q_UNUSED(role);
struct tank_info_t *info = &tank_info[index.row()];
switch (index.column()) {
case DESCRIPTION:
@@ -78,6 +81,7 @@ QVariant TankInfoModel::data(const QModelIndex &index, int role) const
int TankInfoModel::rowCount(const QModelIndex &parent) const
{
+ Q_UNUSED(parent);
return rows + 1;
}