Mercurial > hg > svcore
diff data/model/SparseValueModel.h @ 1599:ce185d4dd408 bqaudiostream
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 14:43:43 +0000 |
parents | ad5f892c0c4d |
children | 0e0947896fd3 |
line wrap: on
line diff
--- a/data/model/SparseValueModel.h Wed Jan 23 10:31:40 2019 +0000 +++ b/data/model/SparseValueModel.h Wed Jan 23 14:43:43 2019 +0000 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _SPARSE_VALUE_MODEL_H_ -#define _SPARSE_VALUE_MODEL_H_ +#ifndef SV_SPARSE_VALUE_MODEL_H +#define SV_SPARSE_VALUE_MODEL_H #include "SparseModel.h" #include "base/UnitDatabase.h" @@ -53,7 +53,7 @@ using SparseModel<PointType>::getPoints; using SparseModel<PointType>::tr; - QString getTypeName() const { return tr("Sparse Value"); } + QString getTypeName() const override { return tr("Sparse Value"); } virtual float getValueMinimum() const { return m_valueMinimum; } virtual float getValueMaximum() const { return m_valueMaximum; } @@ -64,7 +64,7 @@ UnitDatabase::getInstance()->registerUnit(units); } - virtual void addPoint(const PointType &point) + void addPoint(const PointType &point) override { bool allChange = false; @@ -84,7 +84,7 @@ if (allChange) emit modelChanged(); } - virtual void deletePoint(const PointType &point) + void deletePoint(const PointType &point) override { SparseModel<PointType>::deletePoint(point); @@ -113,9 +113,9 @@ } } - virtual void toXml(QTextStream &stream, + void toXml(QTextStream &stream, QString indent = "", - QString extraAttributes = "") const + QString extraAttributes = "") const override { std::cerr << "SparseValueModel::toXml: extraAttributes = \"" << extraAttributes.toStdString() << std::endl;