summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-08 02:28:17 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-08 20:58:22 -0800
commitbf3c18787eb3d2985c4972cb84b94362227de16e (patch)
tree6e9cce0332ea6840f4aba90924ba53f96c1fe210 /qt-models
parent19299b94d0ff07d4a49decaa45e7a69f1579caf1 (diff)
downloadsubsurface-bf3c18787eb3d2985c4972cb84b94362227de16e.tar.gz
Silence warnings in treemodel
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/treemodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-models/treemodel.cpp b/qt-models/treemodel.cpp
index 558f690b2..01db3520f 100644
--- a/qt-models/treemodel.cpp
+++ b/qt-models/treemodel.cpp
@@ -13,6 +13,7 @@ TreeItem::~TreeItem()
Qt::ItemFlags TreeItem::flags(const QModelIndex &index) const
{
+ Q_UNUSED(index);
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
}
@@ -25,6 +26,8 @@ int TreeItem::row() const
QVariant TreeItem::data(int column, int role) const
{
+ Q_UNUSED(column);
+ Q_UNUSED(role);
return QVariant();
}
@@ -55,6 +58,9 @@ QVariant TreeModel::data(const QModelIndex &index, int role) const
bool TreeItem::setData(const QModelIndex &index, const QVariant &value, int role)
{
+ Q_UNUSED(index);
+ Q_UNUSED(value);
+ Q_UNUSED(role);
return false;
}
@@ -99,5 +105,6 @@ int TreeModel::rowCount(const QModelIndex &parent) const
int TreeModel::columnCount(const QModelIndex &parent) const
{
+ Q_UNUSED(parent);
return columns;
}