diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-10-01 16:19:21 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-10-01 16:19:21 +0200 |
commit | e7a10091b64ddeb1d3e21e3f36abbf412021c815 (patch) | |
tree | fffe201f56a3c294cf34e4e11304317becca4504 /src/data/graphelementdata.cpp | |
parent | f448114bc7eaa9b99780c108d5172f649c626a88 (diff) |
fixed many warnings
Diffstat (limited to 'src/data/graphelementdata.cpp')
-rw-r--r-- | src/data/graphelementdata.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/data/graphelementdata.cpp b/src/data/graphelementdata.cpp index 66ef16f..25ba08e 100644 --- a/src/data/graphelementdata.cpp +++ b/src/data/graphelementdata.cpp @@ -118,9 +118,9 @@ QVariant GraphElementData::data(const QModelIndex &index, int role) const QString s = (index.column() == 0) ? p.key() : p.value();
return QVariant(s);
}
- } else {
- return QVariant();
}
+
+ return QVariant();
}
QVariant GraphElementData::headerData(int section, Qt::Orientation orientation, int role) const
@@ -133,12 +133,12 @@ QVariant GraphElementData::headerData(int section, Qt::Orientation orientation, return QVariant();
}
-QModelIndex GraphElementData::index(int row, int column, const QModelIndex &parent) const
+QModelIndex GraphElementData::index(int row, int column, const QModelIndex &) const
{
return createIndex(row, column, (void*)0);
}
-QModelIndex GraphElementData::parent(const QModelIndex &index) const
+QModelIndex GraphElementData::parent(const QModelIndex &) const
{
// there is no nesting, so always return an invalid index
return QModelIndex();
|