Mercurial > hg > svcore
diff data/model/IntervalModel.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/IntervalModel.h Wed Jan 23 10:31:40 2019 +0000 +++ b/data/model/IntervalModel.h Wed Jan 23 14:43:43 2019 +0000 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _INTERVAL_MODEL_H_ -#define _INTERVAL_MODEL_H_ +#ifndef SV_INTERVAL_MODEL_H +#define SV_INTERVAL_MODEL_H #include "SparseValueModel.h" #include "base/RealTime.h" @@ -57,7 +57,7 @@ */ virtual typename SparseValueModel<PointType>::PointList getPoints(sv_frame_t frame) const; - virtual const typename SparseModel<PointType>::PointList &getPoints() const { + const typename SparseModel<PointType>::PointList &getPoints() const override { return SparseModel<PointType>::getPoints(); } @@ -65,7 +65,7 @@ * TabularModel methods. */ - virtual QVariant getData(int row, int column, int role) const + QVariant getData(int row, int column, int role) const override { if (column < 2) { return SparseValueModel<PointType>::getData @@ -86,7 +86,7 @@ } } - virtual Command *getSetDataCommand(int row, int column, const QVariant &value, int role) + Command *getSetDataCommand(int row, int column, const QVariant &value, int role) override { typedef IntervalModel<PointType> I; @@ -115,7 +115,7 @@ return command->finish(); } - virtual bool isColumnTimeValue(int column) const + bool isColumnTimeValue(int column) const override { // NB duration is not a "time value" -- that's for columns // whose sort ordering is exactly that of the frame time