Mercurial > hg > svgui
diff layer/SpectrumLayer.h @ 1470:696e569ff21b by-id
Further layer updates for ById
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:37:22 +0100 |
parents | a18e78b9c78b |
children |
line wrap: on
line diff
--- a/layer/SpectrumLayer.h Thu Jun 27 13:16:25 2019 +0100 +++ b/layer/SpectrumLayer.h Fri Jun 28 17:37:22 2019 +0100 @@ -37,8 +37,8 @@ SpectrumLayer(); ~SpectrumLayer(); - void setModel(DenseTimeValueModel *model); - virtual const Model *getModel() const override { return m_originModel; } + void setModel(ModelId model); // a DenseTimeValueModel + virtual ModelId getModel() const override { return m_originModel; } virtual bool getCrosshairExtents(LayerGeometryProvider *, QPainter &, QPoint cursorPos, std::vector<QRect> &extents) const override; @@ -115,7 +115,7 @@ void preferenceChanged(PropertyContainer::PropertyName name); protected: - DenseTimeValueModel *m_originModel; + ModelId m_originModel; // a DenseTimeValueModel int m_channel; bool m_channelSet; int m_windowSize;