summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-08 02:28:50 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-08 20:58:22 -0800
commitdda7dda971c4dfa107eece981683e217c8cc278a (patch)
tree644acec16c0493832b2b31e1060ca55c09645670
parentb895c8574eac61b64a1bbf309a59a37e4f58bcb6 (diff)
downloadsubsurface-dda7dda971c4dfa107eece981683e217c8cc278a.tar.gz
Silence warnings in weightsysteminfomodel
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-models/weigthsysteminfomodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-models/weigthsysteminfomodel.cpp b/qt-models/weigthsysteminfomodel.cpp
index 1ddc2e940..daa305284 100644
--- a/qt-models/weigthsysteminfomodel.cpp
+++ b/qt-models/weigthsysteminfomodel.cpp
@@ -11,6 +11,7 @@ WSInfoModel *WSInfoModel::instance()
bool WSInfoModel::insertRows(int row, int count, const QModelIndex &parent)
{
+ Q_UNUSED(row);
beginInsertRows(parent, rowCount(), rowCount());
rows += count;
endInsertRows();
@@ -19,6 +20,8 @@ bool WSInfoModel::insertRows(int row, int count, const QModelIndex &parent)
bool WSInfoModel::setData(const QModelIndex &index, const QVariant &value, int role)
{
+ //WARN: check for Qt::EditRole
+ Q_UNUSED(role);
struct ws_info_t *info = &ws_info[index.row()];
switch (index.column()) {
case DESCRIPTION:
@@ -66,6 +69,7 @@ QVariant WSInfoModel::data(const QModelIndex &index, int role) const
int WSInfoModel::rowCount(const QModelIndex &parent) const
{
+ Q_UNUSED(parent);
return rows + 1;
}