From a7ee8d0ee119dd9acf57173ee7747772064fba5c Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Date: Tue, 8 Mar 2016 02:28:50 -0300
Subject: [PATCH 20/21] Clean weightsysteminfomodel

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
---
 qt-models/weigthsysteminfomodel.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qt-models/weigthsysteminfomodel.cpp b/qt-models/weigthsysteminfomodel.cpp
index 1ddc2e9..daa3052 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;
 }
 
-- 
2.5.4 (Apple Git-61)

