mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence warnings in treemodel
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
19299b94d0
commit
bf3c18787e
1 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,7 @@ TreeItem::~TreeItem()
|
||||||
|
|
||||||
Qt::ItemFlags TreeItem::flags(const QModelIndex &index) const
|
Qt::ItemFlags TreeItem::flags(const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(index);
|
||||||
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
|
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +26,8 @@ int TreeItem::row() const
|
||||||
|
|
||||||
QVariant TreeItem::data(int column, int role) const
|
QVariant TreeItem::data(int column, int role) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(column);
|
||||||
|
Q_UNUSED(role);
|
||||||
return QVariant();
|
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)
|
bool TreeItem::setData(const QModelIndex &index, const QVariant &value, int role)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(index);
|
||||||
|
Q_UNUSED(value);
|
||||||
|
Q_UNUSED(role);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,5 +105,6 @@ int TreeModel::rowCount(const QModelIndex &parent) const
|
||||||
|
|
||||||
int TreeModel::columnCount(const QModelIndex &parent) const
|
int TreeModel::columnCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(parent);
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue